fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
59fab4e7
0.8.1
1load ( "@rules_cc//cc:defs.bzl" , "cc_library" ) 2 3cc_library ( 4name = "zlib" , 5srcs = glob ([ "*.c" ]), 6hdrs = glob ([ "*.h" ]), 7# Use -Dverbose=-1 to turn off zlib's trace logging. 8# https://github.com/bazelbuild/bazel/issues/3280 9copts = select ({ 10"@platforms//os:linux" : [ 11"-w" , 12"-Dverbose=-1" , 13# Required for opt builds to avoid 14# `libzlib.a(crc32.o): requires unsupported dynamic reloc 11; recompile with -fPIC` 15"-fPIC" , 16], 17"//conditions:default" : [ 18"-w" , 19"-Dverbose=-1" , 20], 21}), 22includes = [ "." ], 23linkstatic = True , 24visibility = [ "//visibility:public" ], 25)