Skip to content

Commit

Permalink
[Backport] Fix santizers on MacOS that require dylibs in the LLVM too…
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyailya committed Apr 22, 2024
1 parent 5c23c6f commit 8dde54e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions toolchain/BUILD.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ filegroup(
[
"lib/lib*.a",
"lib/clang/%{llvm_version}/lib/**/*.a",
"lib/clang/%{llvm_version}/lib/**/*.dylib",
],
exclude = [
"lib/libLLVM*.a",
Expand Down
6 changes: 6 additions & 0 deletions toolchain/cc_toolchain_config.bzl.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ def _impl(ctx):
"-L%{toolchain_path_prefix}/lib",
"-lc++-static",
"-lc++abi-static",
"-Bstatic",
"-lunwind",
"-Bdynamic",
],
),
],
Expand All @@ -275,6 +278,9 @@ def _impl(ctx):
flags = [
"-lc++",
"-lc++abi",
"-Bstatic",
"-lunwind",
"-Bdynamic",
],
),
],
Expand Down

0 comments on commit 8dde54e

Please sign in to comment.