licenses(["notice"]) # Apache 2.0 cc_library( name = "aws_checksums", srcs = glob([ "source/*.c", ]) + select({ "@platforms//cpu:x86_64": glob(["source/intel/*.c"]), "@platforms//cpu:aarch64": glob(["source/arm/*.c"]), "//conditions:default": ["@platforms//:incompatible"], }), hdrs = glob([ "include/**/*.h" ]), includes = [ "include/", ], copts = [ "-O2" # Note there is some issue with the assembly implementation and GCC, therefore this should always be compiled with -O (https://github.com/awslabs/aws-checksums/issues/8) ], deps = [ "@aws_c_common", ], visibility = ["//visibility:public"], )