Skip to content

Commit e793be9

Browse files
authored
Set copt in platform-specific way & increase bazel test timeouts (#756)
1 parent f5ba01f commit e793be9

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

.bazelrc

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,25 @@ common --announce_rc
1919
common --experimental_repo_remote_exec
2020
common --verbose_failures
2121

22-
# Default build options
23-
build --copt -std=c++17
24-
build --copt -D_GLIBCXX_USE_CXX11_ABI=1
22+
# C++ language selection. The variants are needed because MS Visual Studio on
23+
# Windows uses slightly different syntax.
24+
common --enable_platform_specific_config
25+
26+
build:linux --copt=-std=c++17
27+
build:linux --cxxopt=-std=c++17
28+
29+
build:macos --copt=-std=c++17
30+
build:macos --cxxopt=-std=c++17
31+
32+
build:windows --copt=/std:c++17
33+
build:windows --cxxopt=/std:c++17
34+
35+
build --copt=-D_GLIBCXX_USE_CXX11_ABI=1
36+
build --cxxopt=-D_GLIBCXX_USE_CXX11_ABI=1
2537

2638
# Test flags
2739
test --test_output=errors
40+
test --test_timeout=600
2841

2942
# CUDA options
3043
build:cuda --@local_config_cuda//:enable_cuda

0 commit comments

Comments
 (0)