aboutsummaryrefslogtreecommitdiff
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
parentb131f2e5263c8395ae491b68ce93317265bc24af (diff)
Lower optimization level for Clang targeting MSVC to -O2
See Clang bug #45021 for details.
-rw-r--r--BOOTSTRAP-WINDOWS-CLANG.cli4
-rw-r--r--UPGRADE.cli2
-rw-r--r--build-clang.bat4
3 files changed, 5 insertions, 5 deletions
diff --git a/BOOTSTRAP-WINDOWS-CLANG.cli b/BOOTSTRAP-WINDOWS-CLANG.cli
index f35c212..507b9ce 100644
--- a/BOOTSTRAP-WINDOWS-CLANG.cli
+++ b/BOOTSTRAP-WINDOWS-CLANG.cli
@@ -154,7 +154,7 @@ also a note on the following step about only building shared libraries):
\
> build2\build2\b-boot configure ^
config.cxx=clang++ ^
- \"config.cc.coptions=-m64 -O3\" ^
+ \"config.cc.coptions=-m64 -O2\" ^
config.bin.lib=shared ^
config.install.root=C:\build2
@@ -187,7 +187,7 @@ previous step and you may want/need to make similar adjustments.
> bpkg-stage create ^
cc ^
config.cxx=clang++ ^
- \"config.cc.coptions=-m64 -O3\" ^
+ \"config.cc.coptions=-m64 -O2\" ^
config.bin.lib=shared ^
config.install.root=C:\build2
\
diff --git a/UPGRADE.cli b/UPGRADE.cli
index d76eb41..7b15afd 100644
--- a/UPGRADE.cli
+++ b/UPGRADE.cli
@@ -203,7 +203,7 @@ For Windows with Clang (from a suitable command prompt, see
> bpkg-stage create ^
cc ^
config.cxx=clang++ ^
- \"config.cc.coptions=-m64 -O3\" ^
+ \"config.cc.coptions=-m64 -O2\" ^
config.bin.lib=shared ^
config.install.root=C:\build2
\
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