diff options
author | Fabian Meumertzheim <meumertzheim@code-intelligence.com> | 2021-08-10 21:09:43 +0200 |
---|---|---|
committer | Fabian Meumertzheim <fabian@meumertzhe.im> | 2021-08-11 19:10:05 +0200 |
commit | e4f4fc0aef5000a3de19ede676de465976c9548c (patch) | |
tree | 35867ddc600115127a48f127927167f25c4a7b4a /driver | |
parent | 016c0adda7cb1a1ab7850abdd9229037d9097bda (diff) | |
download | jazzer-api-e4f4fc0aef5000a3de19ede676de465976c9548c.tar.gz |
Link the UBSan C++ runtime library
Since Bazel uses clang as its linker instead of clang++, the UBSan
C++ runtime library is not linked automatically. We request it
explicitly.
Diffstat (limited to 'driver')
-rw-r--r-- | driver/BUILD.bazel | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/driver/BUILD.bazel b/driver/BUILD.bazel index 8e095559..656df7cb 100644 --- a/driver/BUILD.bazel +++ b/driver/BUILD.bazel @@ -128,6 +128,7 @@ cc_binary( "-fsanitize=undefined", # Link UBSan statically, even on macOS. "-static-libsan", + "-fsanitize-link-c++-runtime", "-rdynamic", ] + select({ "@platforms//os:linux": ["-fuse-ld=lld"], |