Skip to content

Commit 8382945

Browse files
committed
Add windows specific bazel flags
See tensorflow/tensorflow@5aa11f9
1 parent 78bbc03 commit 8382945

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.bazelrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ build:windows --host_copt=-DWIN32_LEAN_AND_MEAN
6363
build:windows --copt=-DNOGDI
6464
build:windows --host_copt=-DNOGDI
6565

66+
# MSVC (Windows): Standards-conformant preprocessor mode
67+
# See https://docs.microsoft.com/en-us/cpp/build/reference/zc-preprocessor
68+
build:windows --copt=/Zc:preprocessor
69+
build:windows --host_copt=/Zc:preprocessor
70+
6671
# Misc build options we need for windows.
6772
build:windows --linkopt=/DEBUG
6873
build:windows --host_linkopt=/DEBUG

0 commit comments

Comments
 (0)