Skip to content

Commit

Permalink
Added flag to enable _USE_MATH_DEFINES on windows
Browse files Browse the repository at this point in the history
Windows builds were flaking because they were unable to see the `M_PI` symbol. This will add the `_USE_MATH_DEFINES` flag into our builds which should hopefully fix the issue.
  • Loading branch information
MichaelBroughton authored Mar 12, 2020
1 parent a0ef76b commit 396ffa1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tensorflow_quantum/core/ops/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ cc_binary(
copts = select({
":windows": [
"/D__CLANG_SUPPORT_DYN_ANNOTATION__",
"/D_USE_MATH_DEFINES",
"/DEIGEN_MPL2_ONLY",
"/DEIGEN_MAX_ALIGN_BYTES=64",
"/DEIGEN_HAS_TYPE_TRAITS=0",
Expand Down Expand Up @@ -74,6 +75,7 @@ cc_binary(
copts = select({
":windows": [
"/D__CLANG_SUPPORT_DYN_ANNOTATION__",
"/D_USE_MATH_DEFINES",
"/DEIGEN_MPL2_ONLY",
"/DEIGEN_MAX_ALIGN_BYTES=64",
"/DEIGEN_HAS_TYPE_TRAITS=0",
Expand Down Expand Up @@ -134,6 +136,7 @@ cc_binary(
copts = select({
":windows": [
"/D__CLANG_SUPPORT_DYN_ANNOTATION__",
"/D_USE_MATH_DEFINES",
"/DEIGEN_MPL2_ONLY",
"/DEIGEN_MAX_ALIGN_BYTES=64",
"/DEIGEN_HAS_TYPE_TRAITS=0",
Expand Down

0 comments on commit 396ffa1

Please sign in to comment.