Add /D_USE_MATH_DEFINES
to host copt to fix windows builds.
PiperOrigin-RevId: 299385048 Change-Id: Ibcf8b4ebf4a497aefe3d2c2557d9c3f42ca06b38
This commit is contained in:
parent
8685cf97d5
commit
49e0779a4d
1
.bazelrc
1
.bazelrc
@ -240,6 +240,7 @@ build:windows --copt=/w
|
|||||||
# Tensorflow uses M_* math constants that only get defined by MSVC headers if
|
# Tensorflow uses M_* math constants that only get defined by MSVC headers if
|
||||||
# _USE_MATH_DEFINES is defined.
|
# _USE_MATH_DEFINES is defined.
|
||||||
build:windows --copt=/D_USE_MATH_DEFINES
|
build:windows --copt=/D_USE_MATH_DEFINES
|
||||||
|
build:windows --host_copt=/D_USE_MATH_DEFINES
|
||||||
|
|
||||||
# Default paths for TF_SYSTEM_LIBS
|
# Default paths for TF_SYSTEM_LIBS
|
||||||
build:linux --define=PREFIX=/usr
|
build:linux --define=PREFIX=/usr
|
||||||
|
Loading…
Reference in New Issue
Block a user