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

Commit

Permalink
Merge pull request #90 from seanpmorgan/compile-windows-tf24
Browse files Browse the repository at this point in the history
Build with experimental preprocessor for Windows
  • Loading branch information
mihaimaruseac authored Mar 18, 2021
2 parents 1e2d3c2 + 3799c2d commit e0e6811
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 e0e6811

Please sign in to comment.