Skip to content

Commit 7242cf5

Browse files
committed
macos: Don't use libc++/libunwind from homebrew, only the compilers
1 parent 151fe25 commit 7242cf5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.bazelrc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,14 @@ build:macos --copt=-DCIVETWEB_API= --copt=-DCIVETWEB_CXX_API= --cxxopt=-DCIVETWE
5555
build:macos --cxxopt=-fvisibility=hidden --copt=-fvisibility=hidden
5656
build:macos --strip=never --copt=-g --action_env=CC=/opt/homebrew/bin/clang --host_action_env=CC=/opt/homebrew/bin/clang
5757
# https://github.com/Homebrew/homebrew-core/issues/178435#issuecomment-2250615995
58-
build:macos --linkopt=-L/opt/homebrew/opt/llvm/lib/c++ --linkopt=-L/opt/homebrew/opt/llvm/lib/unwind --linkopt=-lunwind
59-
build:macos --host_linkopt=-L/opt/homebrew/opt/llvm/lib/c++ --host_linkopt=-L/opt/homebrew/opt/llvm/lib/unwind --host_linkopt=-lunwind
58+
#build:macos --linkopt=-L/opt/homebrew/opt/llvm/lib/c++ --linkopt=-L/opt/homebrew/opt/llvm/lib/unwind --linkopt=-lunwind
59+
#build:macos --host_linkopt=-L/opt/homebrew/opt/llvm/lib/c++ --host_linkopt=-L/opt/homebrew/opt/llvm/lib/unwind --host_linkopt=-lunwind
60+
61+
build:macos --linkopt=-L/opt/homebrew/opt/llvm/lib
62+
build:macos --host_linkopt=-L/opt/homebrew/opt/llvm/lib
63+
64+
build:macos --copt="-I /opt/homebrew/opt/llvm/include"
65+
build:macos --host_copt="-I /opt/homebrew/opt/llvm/include"
6066

6167
# --config=asan : Address Sanitizer.
6268
common:asan --copt -DADDRESS_SANITIZER

0 commit comments

Comments
 (0)