Skip to content

Commit 3c71988

Browse files
authored
osx support (#5154)
* osx support * lint * update * revert
1 parent d76800f commit 3c71988

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.bazelrc

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ build:remote --remote_timeout=7200
1414
# ========================================
1515

1616
# Enable libc++ and C++20 by default.
17-
build --config=libc++20
17+
build:linux --config=libc++20
1818

1919
# Need for CI image to pickup docker-credential-gcloud, PATH is fixed in rbe-toolchain-* configs.
2020
build:remote-ci --action_env=PATH=/usr/local/google-cloud-sdk/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/llvm/bin
@@ -25,7 +25,8 @@ build --define path_normalization_by_default=true
2525

2626
# Heap profiler is supported only with gperf tcmalloc, not google tcmalloc.
2727
# See: https://github.com/istio/istio/issues/28233
28-
build --define tcmalloc=gperftools
28+
build:linux --define tcmalloc=gperftools
29+
build:macos --define tcmalloc=disabled
2930

3031
# Build with embedded V8-based WebAssembly runtime.
3132
build --define wasm=v8
@@ -67,3 +68,9 @@ build:clang-asan-ci --linkopt=-l:libclang_rt.ubsan_standalone_cxx.a
6768
build:clang-tsan-ci --config=clang-tsan
6869
build:clang-tsan-ci --linkopt=-L/opt/libcxx_tsan/lib
6970
build:clang-tsan-ci --linkopt=-Wl,-rpath,/opt/libcxx_tsan/lib
71+
72+
# get from https://github.com/Homebrew/homebrew-core/blob/master/Formula/e/envoy.rb
73+
build:macos --cxxopt=-Wno-range-loop-analysis
74+
build:macos --host_cxxopt=-Wno-range-loop-analysis
75+
build:macos --cxxopt=-Wno-deprecated-declarations
76+
build:macos --host_cxxopt=-Wno-deprecated-declarations

0 commit comments

Comments
 (0)