Skip to content

Commit

Permalink
Change UBSan linkopt flag
Browse files Browse the repository at this point in the history
Both `-fsanitize-link-c++-runtime` and `--driver-mode=g++` can be used to
work around bazelbuild/bazel#12797
but intent is clearer with `-fsanitize-link-c++-runtime`.

resolves #57

Change-Id: I8bbf9518b7587f67c274ed389e5153d66166b2f7
  • Loading branch information
oliverlee committed Jun 15, 2023
1 parent 732776a commit afa478f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ llvm_toolchain(
# use `link_libs` to prevent overriding default `link_flags`
# https://github.com/grailbio/bazel-toolchain/blob/ceeedcc4464322e05fe5b8df3749cc02273ee083/toolchain/cc_toolchain_config.bzl#L148-L150
link_libs = {
"": ["--driver-mode=g++"],
"": ["-fsanitize-link-c++-runtime"],
},
linux_x86_64_sysroot = "@gcc_12_toolchain_files//x86_64-buildroot-linux-gnu/sysroot",
llvm_version = "16.0.4",
Expand Down

0 comments on commit afa478f

Please sign in to comment.