diff options
| author | Fuwn <[email protected]> | 2022-06-01 12:15:18 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-06-01 12:15:18 -0700 |
| commit | dfe06c0de4d07ff0dc770e9a0819f94b1e660ae9 (patch) | |
| tree | fa4554180923ea47b9618b3ad3d04f6183a12104 /.bazelrc | |
| download | cs162-main.tar.xz cs162-main.zip | |
Diffstat (limited to '.bazelrc')
| -rw-r--r-- | .bazelrc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.bazelrc b/.bazelrc new file mode 100644 index 0000000..ff75819 --- /dev/null +++ b/.bazelrc @@ -0,0 +1,13 @@ +build -c fastbuild --enable_platform_specific_config +build --repo_env=CC=clang++ + +build:linux --cxxopt="-std=c++20" --cxxopt="-Weverything" --cxxopt="-Wno-c++98-compat" + +build:macos --cxxopt="-std=c++20" --cxxopt="-Weverything" --cxxopt="-Wno-c++98-compat" + +# https://blog.bazel.build/2018/01/19/config-parsing-order.html +build:opt --config=linux --copt="-03" +build:opt --config=macos --copt="-03" +build:opt --config=windows --copt="/GL + +build:windows --cxxopt="/std:c++latest" --copt="/W4" --copt="/WX" # --copt="/Wall" |