aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/root.build16
1 files changed, 15 insertions, 1 deletions
diff --git a/build/root.build b/build/root.build
index e21dc3d..4a3a866 100644
--- a/build/root.build
+++ b/build/root.build
@@ -14,7 +14,17 @@ if ($cxx.target.system == 'win32-msvc')
cxx.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS
if ($cxx.class == 'msvc')
- cxx.coptions += /wd4251 /wd4275 /wd4800 /wd4819
+ cxx.coptions += /wd4251 /wd4275 /wd4800
+elif ($cxx.id == 'gcc')
+{
+ cxx.coptions += -Wno-maybe-uninitialized -Wno-free-nonheap-object \
+-Wno-stringop-overread # 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
cxx.poptions =+ "-I$out_root" "-I$src_root"
@@ -25,3 +35,7 @@ cxx.poptions =+ "-I$out_root" "-I$src_root"
# be there unless the module is configured).
#
using? cli
+
+# Disable build2 libraries importation using the built-in path.
+#
+import.build2 = [null]