mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 12:26:07 +00:00
[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' ```
This commit is contained in:
parent
6ad1cf3b37
commit
0099c584ba
@ -292,6 +292,10 @@ cc_library(
|
||||
"-ldl",
|
||||
"-lm",
|
||||
],
|
||||
"@platforms//os:macos": [
|
||||
"-pthread",
|
||||
"-ldl",
|
||||
],
|
||||
"//conditions:default": [
|
||||
"-pthread",
|
||||
"-ldl",
|
||||
|
Loading…
x
Reference in New Issue
Block a user