aboutsummaryrefslogtreecommitdiff
path: root/build-clang.bat
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-07-18 10:20:59 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-07-18 10:20:59 +0200
commit7e58023f748a486effe834ad99ab7db20f200045 (patch)
treea737e2d35f6fa91353e69d15874500f8386e3de0 /build-clang.bat
parentb131f2e5263c8395ae491b68ce93317265bc24af (diff)
Lower optimization level for Clang targeting MSVC to -O2
See Clang bug #45021 for details.
Diffstat (limited to 'build-clang.bat')
-rw-r--r--build-clang.bat4
1 files changed, 2 insertions, 2 deletions
diff --git a/build-clang.bat b/build-clang.bat
index a2a8c90..7ee08e8 100644
--- a/build-clang.bat
+++ b/build-clang.bat
@@ -249,7 +249,7 @@ cd ..
build2\build2\b-boot %verbose% configure^
config.cxx=%cxx%^
- "config.cc.coptions=-m64 -O3"^
+ "config.cc.coptions=-m64 -O2"^
config.bin.lib=shared^
config.install.root=%idir%
@if errorlevel 1 goto error
@@ -328,7 +328,7 @@ cd %cdir%
bpkg-stage %verbose% create^
cc^
config.cxx=%cxx%^
- "config.cc.coptions=-m64 -O3"^
+ "config.cc.coptions=-m64 -O2"^
config.bin.lib=shared^
config.install.root=%idir%
@if errorlevel 1 goto error