Skip to content

Commit 0099c58

Browse files
authored
[bazel] Remove -lm on macOS (#86706)
Bazel links this library by default which leads to this linker warning on macOS: ``` ld: warning: ignoring duplicate libraries: '-lm' ```
1 parent 6ad1cf3 commit 0099c58

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

utils/bazel/llvm-project-overlay/llvm/BUILD.bazel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,10 @@ cc_library(
292292
"-ldl",
293293
"-lm",
294294
],
295+
"@platforms//os:macos": [
296+
"-pthread",
297+
"-ldl",
298+
],
295299
"//conditions:default": [
296300
"-pthread",
297301
"-ldl",

0 commit comments

Comments
 (0)