diff options
author | 2017-07-07 04:18:14 -0400 | |
---|---|---|
committer | 2017-07-07 07:08:58 -0400 | |
commit | 87250d979d3622bc3fdb6095799a668841a2b152 (patch) | |
tree | 17cd6a19f23862c856af96357b495569d07db299 /tools/cpp/CROSSTOOL.tpl | |
parent | b7584447cbc7fbea3afb9ae42baf78f262be1041 (diff) |
Remove some unnecessary compiler_flags from Windows CROSSTOOL
After reviewing these options' meanings, I don't think we need to put them in CROSSTOOL. Users can add them in their own BUILD files if needed, so that they don't have to undefine them. See https://github.com/bazelbuild/bazel/pull/3310
RELNOTES: None
PiperOrigin-RevId: 161177879
Diffstat (limited to 'tools/cpp/CROSSTOOL.tpl')
-rw-r--r-- | tools/cpp/CROSSTOOL.tpl | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/tools/cpp/CROSSTOOL.tpl b/tools/cpp/CROSSTOOL.tpl index 78c8388618..9e744174b6 100644 --- a/tools/cpp/CROSSTOOL.tpl +++ b/tools/cpp/CROSSTOOL.tpl @@ -175,19 +175,12 @@ toolchain { compiler_flag: "/DOS_WINDOWS=OS_WINDOWS" compiler_flag: "/DCOMPILER_MSVC" - # Don't pollute with GDI macros in windows.h. - compiler_flag: "/DNOGDI" - # Don't define min/max macros in windows.h. - compiler_flag: "/DNOMINMAX" - compiler_flag: "/DPRAGMA_SUPPORTED" # Platform defines. compiler_flag: "/D_WIN32_WINNT=0x0600" # Turn off warning messages. compiler_flag: "/D_CRT_SECURE_NO_DEPRECATE" compiler_flag: "/D_CRT_SECURE_NO_WARNINGS" compiler_flag: "/D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS" - # Use math constants (M_PI, etc.) from the math library - compiler_flag: "/D_USE_MATH_DEFINES" # Useful options to have on for compilation. # Increase the capacity of object files to 2^32 sections. |