forked from tensorflow/tfjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bazelrc
21 lines (17 loc) · 776 Bytes
/
.bazelrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Use our custom-configured c++ toolchain.
build:wasm --crosstool_top=//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="-std=c++11"
build:wasm --cxxopt="-fno-rtti"
build:wasm --cxxopt="-fno-exceptions"
build:wasm --cxxopt="-fomit-frame-pointer"
build:wasm --cxxopt="-ffast-math"
build:wasm --copt="-ffast-math"
# Disable sandbox environment because emsdk caches files by writing to
# home directory.
build:wasm --spawn_strategy=local