| # Enables automatic per-platform configs. | |
| common --enable_platform_specific_config | |
| # Minumum C++ version. Override it building this project with | |
| # `bazel build --cxxopt='-std=c++<XY>' --host_cxxopt='c++<XY>' ...` | |
| # (Both -std and --host_cxxopt must be set to force the desired version.) | |
| build:linux --cxxopt='-std=c++17' --host_cxxopt='-std=c++17' | |
| build:macos --cxxopt='-std=c++17' --host_cxxopt='-std=c++17' | |
| build:windows --cxxopt='/std:c++17' --host_cxxopt='/std:c++17' | |
| # Silence all C/C++ warnings in external code. | |
| # | |
| # Note that this will not silence warnings from external headers included | |
| # in project code. | |
| build --per_file_copt=external/.*@-w | |
| build --host_per_file_copt=external/.*@-w |