Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
* Use experimental preprocessor for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
seanpmorgan committed Dec 1, 2020
1 parent 1e2d3c2 commit 3799c2d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ write_to_bazelrc "build --spawn_strategy=standalone"
write_to_bazelrc "build --strategy=Genrule=standalone"
write_to_bazelrc "build -c opt"

# MSVC (Windows): Standards-conformant preprocessor mode
# See https://docs.microsoft.com/en-us/cpp/preprocessor/preprocessor-experimental-overview
if is_windows; then
write_to_bazelrc "build --copt=/experimental:preprocessor"
write_to_bazelrc "build --host_copt=/experimental:preprocessor"
fi

if is_windows; then
# Use pywrap_tensorflow instead of tensorflow_framework on Windows
Expand Down

0 comments on commit 3799c2d

Please sign in to comment.