From 3beb3bfe094b0355e3a5bdd4c78d5646b3d9d685 Mon Sep 17 00:00:00 2001 From: Lukas Geiger Date: Thu, 10 Aug 2023 10:58:24 +0200 Subject: [PATCH] Use command parameter files when compiling on Windows (#791) --- .tensorflow.bazelrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.tensorflow.bazelrc b/.tensorflow.bazelrc index e205a684..98cf5a53 100644 --- a/.tensorflow.bazelrc +++ b/.tensorflow.bazelrc @@ -86,6 +86,10 @@ build:windows --host_copt=/Zc:__cplusplus build:windows --copt=/D_USE_MATH_DEFINES build:windows --host_copt=/D_USE_MATH_DEFINES +# Windows has a relatively short command line limit, which TF has begun to hit. +# See https://docs.bazel.build/versions/main/windows.html +build:windows --features=compiler_param_file + # By default, build LCE in C++ 17 mode. build:android --cxxopt=-std=c++17 build:android --host_cxxopt=-std=c++17