File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ build --enable_platform_specific_config
3636
3737build:linux --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
3838build:linux --cxxopt=-Wno-sign-compare --host_cxxopt=-Wno-sign-compare
39-
39+ build:linux --cxxopt=-Wno-range-loop-construct --host_cxxopt=-Wno-range-loop-construct
4040
4141###############################################################################
4242# Options for macOS.
@@ -48,6 +48,7 @@ build:macos --features=-supports_dynamic_linker
4848build:macos --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
4949build:macos --cxxopt=-Wno-sign-compare --host_cxxopt=-Wno-sign-compare
5050build:macos --cxxopt=-Wno-dangling-field --host_cxxopt=-Wno-dangling-field
51+ build:macos --cxxopt=-Wno-range-loop-construct --host_cxxopt=-Wno-range-loop-construct
5152build:macos --cxxopt=-mmacos-version-min=10.15 --host_cxxopt=-mmacos-version-min=10.15
5253
5354###############################################################################
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ python.defaults(python_version = DEFAULT_PYTHON)
9090python .toolchain (python_version = DEFAULT_PYTHON )
9191
9292pip = use_extension ("@rules_python//python/extensions:pip.bzl" , "pip" )
93+
9394[
9495 pip .parse (
9596 envsubst = ["PIP_INDEX_URL" ],
Original file line number Diff line number Diff line change @@ -133,7 +133,11 @@ if(MSVC)
133133 "/wd4996" # The compiler encountered a deprecated declaration.
134134 )
135135else ()
136- list (APPEND OR_TOOLS_COMPILE_OPTIONS "-fwrapv" )
136+ list (APPEND OR_TOOLS_COMPILE_OPTIONS
137+ "-fwrapv"
138+ "-Wno-range-loop-construct"
139+ "-Wno-sign-compare"
140+ )
137141endif ()
138142
139143# Link option
You can’t perform that action at this time.
0 commit comments