Skip to content

Commit ae578ac

Browse files
committed
minor macos fixes... still wip
1 parent 5a48e68 commit ae578ac

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.bazelrc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
build --features=parse_headers
5-
build --features=layering_check
5+
#build --features=layering_check
66

77
# Don't try to build .so and .dylib shared libs (instead of static) libs on Linux/OSX
88
# For some reason, with clang-cl, it also tried to do on Windows, where dynamic linking just does not support it.
@@ -45,12 +45,15 @@ build:linux --cxxopt=-fvisibility=hidden --copt=-fvisibility=hidden
4545
#build:linux --fission=yes --copt=-g
4646
build:linux --copt=-g --strip=never
4747

48+
build:macos --copt=-Wno-missing-template-arg-list-after-template-kw
49+
build:macos --host_copt=-Wno-missing-template-arg-list-after-template-kw
50+
4851
build:macos --copt=-DCIVETWEB_API= --copt=-DCIVETWEB_CXX_API= --cxxopt=-DCIVETWEB_API= --cxxopt=-DCIVETWEB_CXX_API=
4952
build:macos --cxxopt=-fvisibility=hidden --copt=-fvisibility=hidden
50-
build:macos --fission=yes --copt=-g --action_env=CC=/opt/homebrew/bin/clang --host_action_env=CC=/opt/homebrew/bin/clang
53+
build:macos --strip=never --copt=-g --action_env=CC=/opt/homebrew/bin/clang --host_action_env=CC=/opt/homebrew/bin/clang
5154
# https://github.com/Homebrew/homebrew-core/issues/178435#issuecomment-2250615995
52-
build:macos --linkopt=-L/opt/homebrew/opt/llvm/lib/c++ --linkopt=-L/opt/homebrew/opt/llvm/lib --linkopt=-lunwind
53-
build:macos --host_linkopt=-L/opt/homebrew/opt/llvm/lib/c++ --host_linkopt=-L/opt/homebrew/opt/llvm/lib --host_linkopt=-lunwind
55+
build:macos --linkopt=-L/opt/homebrew/opt/llvm/lib/c++ --linkopt=-L/opt/homebrew/opt/llvm/lib/unwind --linkopt=-lunwind
56+
build:macos --host_linkopt=-L/opt/homebrew/opt/llvm/lib/c++ --host_linkopt=-L/opt/homebrew/opt/llvm/lib/unwind --host_linkopt=-lunwind
5457

5558
# --config=asan : Address Sanitizer.
5659
common:asan --copt -DADDRESS_SANITIZER

0 commit comments

Comments
 (0)