diff options
author | Fabian Meumertzheim <fabian@meumertzhe.im> | 2021-08-16 18:27:23 +0200 |
---|---|---|
committer | Fabian Meumertzheim <fabian@meumertzhe.im> | 2021-08-16 20:04:28 +0200 |
commit | 5d23f7b6bbb188fb4976f7d8b641b0e3d7655970 (patch) | |
tree | de60f0a239599c25c5836790d306ed1c83e5fa1a /driver/BUILD.bazel | |
parent | 8e369a2df8f5fe0bbe694ffd3e619b0be4d64522 (diff) | |
download | jazzer-api-5d23f7b6bbb188fb4976f7d8b641b0e3d7655970.tar.gz |
Use lld only with clang on Linux
Restores compatibility with gcc on linux.
Diffstat (limited to 'driver/BUILD.bazel')
-rw-r--r-- | driver/BUILD.bazel | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/driver/BUILD.bazel b/driver/BUILD.bazel index d38acffc..905289e6 100644 --- a/driver/BUILD.bazel +++ b/driver/BUILD.bazel @@ -91,7 +91,7 @@ cc_binary( linkopts = [ "-rdynamic", ] + select({ - "@platforms//os:linux": ["-fuse-ld=lld"], + "//:clang_on_linux": ["-fuse-ld=lld"], "//conditions:default": [], }), visibility = ["//visibility:public"], @@ -118,7 +118,7 @@ cc_binary( "-static-libsan", "-rdynamic", ] + select({ - "@platforms//os:linux": ["-fuse-ld=lld"], + "//:clang_on_linux": ["-fuse-ld=lld"], "//conditions:default": [], }), visibility = ["//visibility:public"], @@ -142,7 +142,7 @@ cc_binary( "-fsanitize-link-c++-runtime", "-rdynamic", ] + select({ - "@platforms//os:linux": ["-fuse-ld=lld"], + "//:clang_on_linux": ["-fuse-ld=lld"], "//conditions:default": [], }), visibility = ["//visibility:public"], |