bazel: Update bazel.rc
This commit is contained in:
18
.bazelrc
18
.bazelrc
@@ -11,5 +11,23 @@ build --flag_alias=with_scip=//ortools/linear_solver:with_scip
|
||||
build --flag_alias=with_cplex=//ortools/linear_solver:with_cplex
|
||||
build --flag_alias=with_xpress=//ortools/linear_solver:with_xpress
|
||||
|
||||
# Sets the default Apple platform to macOS.
|
||||
build --apple_platform_type=macos
|
||||
|
||||
# By default, build OR-Tools in C++ 17 mode.
|
||||
build --enable_platform_specific_config
|
||||
build:linux --cxxopt="-std=c++17"
|
||||
build:linux --host_cxxopt="-std=c++17"
|
||||
build:macos --cxxopt="-std=c++17"
|
||||
build:macos --host_cxxopt="-std=c++17"
|
||||
build:windows --cxxopt="/std:c++20"
|
||||
build:windows --host_cxxopt="/std:c++20"
|
||||
|
||||
# Print command lines for build commands.
|
||||
build --subcommands=pretty_print
|
||||
|
||||
# Print test logs for failed tests.
|
||||
test --test_output=errors
|
||||
|
||||
# Put user-specific options in .bazelrc.user
|
||||
try-import %workspace%/.bazelrc.user
|
||||
|
||||
Reference in New Issue
Block a user