aboutsummaryrefslogtreecommitdiff
path: root/build/root.build
diff options
context:
space:
mode:
Diffstat (limited to 'build/root.build')
-rw-r--r--build/root.build14
1 files changed, 12 insertions, 2 deletions
diff --git a/build/root.build b/build/root.build
index 3c72be0..8c7f674 100644
--- a/build/root.build
+++ b/build/root.build
@@ -1,8 +1,6 @@
# file : build/root.build
# license : MIT; see accompanying LICENSE file
-using bash
-
cxx.std = latest
using cxx
@@ -18,4 +16,16 @@ if ($cxx.target.system == 'win32-msvc')
if ($cxx.class == 'msvc')
cxx.coptions += /wd4251 /wd4275 /wd4800
elif ($cxx.id == 'gcc')
+{
cxx.coptions += -Wno-maybe-uninitialized -Wno-free-nonheap-object # libbutl
+
+ if ($cxx.version.major >= 13)
+ cxx.coptions += -Wno-dangling-reference
+}
+elif ($cxx.id.type == 'clang' && $cxx.version.major >= 15)
+ cxx.coptions += -Wno-unqualified-std-cast-call
+
+# Work around issue with sanitizers messing up rpath (see issue #1219).
+#
+if ($build.mode != 'skeleton')
+ using bash