|
| 1 | +# build --remote_cache=http://bazelcache.inc.alipay.net |
| 2 | + |
| 3 | +# specify java version |
| 4 | +build --java_language_version=8 |
| 5 | +#build --java_runtime_version=localjdk |
| 6 | +#build --tool_java_runtime_version=localjdk |
| 7 | +#build --extra_toolchains=@local_jdk//:all |
| 8 | +#build --java_toolchain=//:default_toolchain |
| 9 | + |
| 10 | +# specify javac options |
| 11 | +build --javacopt="-Aproject=org.example/sparrow-cli -source 8 -target 8" |
| 12 | + |
| 13 | +# verbose test failed message |
| 14 | +build --verbose_failures |
| 15 | +build --test_output=errors |
| 16 | + |
| 17 | +# for c |
| 18 | +build --repo_env=CC=clang --repo_env=CXX=clang++ |
| 19 | +build --action_env=BAZEL_CXXOPTS="-std=gnu++17" |
| 20 | +build --cxxopt=-std=gnu++17 --host_cxxopt=-std=gnu++17 |
| 21 | +build --features=-default_link_flags |
| 22 | + |
| 23 | +# For linux-specific configurations |
| 24 | +build --enable_platform_specific_config |
| 25 | +build:linux --linkopt=-fuse-ld=gold --host_linkopt=-fuse-ld=gold |
| 26 | + |
| 27 | +# Links all targets in mostly static mode. If -static is set in linkopts, targets will change to fully static. |
| 28 | +build --dynamic_mode=off |
| 29 | + |
| 30 | +# build with optimization enabled and with assert() calls disabled |
| 31 | +build --compilation_mode opt |
| 32 | + |
| 33 | +# for js |
| 34 | +build --strategy=Genrule=standalone |
| 35 | + |
| 36 | +# for go |
| 37 | +# set GOPROXY |
| 38 | +test --action_env=GOPROXY=https://goproxy.cn |
| 39 | +build --action_env=GOPROXY=https://goproxy.cn |
| 40 | +run --action_env=GOPROXY=https://goproxy.cn |
0 commit comments