aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/buildfile10
1 files changed, 10 insertions, 0 deletions
diff --git a/libbuild2/buildfile b/libbuild2/buildfile
index ce5a090..831a9b9 100644
--- a/libbuild2/buildfile
+++ b/libbuild2/buildfile
@@ -172,6 +172,16 @@ if ($cxx.target.class != 'windows')
if ($cxx.target.class != "bsd")
libus{build2}: cxx.libs += -ldl
}
+else
+{
+ # @@ TMP work around Clang bug #45021.
+ #
+ if ($cxx.id == 'clang' && $cxx.target.system == 'win32-msvc')
+ {
+ if ($regex.find_match($cc.coptions $cxx.coptions, '-O[23]'))
+ script/obj{run}: cxx.coptions += -O1
+ }
+}
# Export options.
#