Skip to content

Commit 3beb3bf

Browse files
authored
Use command parameter files when compiling on Windows (#791)
1 parent 7d61347 commit 3beb3bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.tensorflow.bazelrc

+4
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ build:windows --host_copt=/Zc:__cplusplus
8686
build:windows --copt=/D_USE_MATH_DEFINES
8787
build:windows --host_copt=/D_USE_MATH_DEFINES
8888

89+
# Windows has a relatively short command line limit, which TF has begun to hit.
90+
# See https://docs.bazel.build/versions/main/windows.html
91+
build:windows --features=compiler_param_file
92+
8993
# By default, build LCE in C++ 17 mode.
9094
build:android --cxxopt=-std=c++17
9195
build:android --host_cxxopt=-std=c++17

0 commit comments

Comments
 (0)