-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bazelrc
39 lines (30 loc) · 1.4 KB
/
.bazelrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
##### WASM #####
# Use our custom-configured c++ toolchain.
build:wasm --crosstool_top=//private_set_intersection/javascript/toolchain:emscripten
# Use --cpu as a differentiator.
build:wasm --cpu=wasm
# Use the default C++ toolchain to build the tools used during the build.
build:wasm --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
# These compile flags are active no matter which build mode we are in
# (dbg vs opt). For flags specific to build mode, see cc_toolchain_config.bzl.
build:wasm --cxxopt="-flto"
build:wasm --cxxopt="-fno-exceptions"
#build:wasm --host_cxxopt="-fno-rtti"
# Disable sandbox environment because emsdk caches files by writing to
# home directory.
build:wasm --spawn_strategy=local
##### Pure JS #####
# Use our custom-configured c++ toolchain.
build:js --crosstool_top=//private_set_intersection/javascript/toolchain:emscripten
# Use --cpu as a differentiator.
build:js --cpu=wasm
# Use the default C++ toolchain to build the tools used during the build.
build:js --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
# These compile flags are active no matter which build mode we are in
# (dbg vs opt). For flags specific to build mode, see cc_toolchain_config.bzl.
build:js --cxxopt="-flto"
build:js --cxxopt="-fno-exceptions"
#build:js --host_cxxopt="-fno-rtti"
# Disable sandbox environment because emsdk caches files by writing to
# home directory.
build:js --spawn_strategy=local