diff options
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..fda09fb --- /dev/null +++ b/.bazelrc @@ -0,0 +1,13 @@ +build -c fastbuild --enable_platform_specific_config +build --repo_env=CC=clang++ + +build:linux --copt="-std=c89" --copt="-Weverything" + +build:macos --copt="-std=c89" --copt="-Weverything" + +# 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 --copt="/std:c11" --copt="/Ze" --copt="/W4" --copt="/WX" # --copt="/Wall" |