aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build/root.build7
1 files changed, 5 insertions, 2 deletions
diff --git a/build/root.build b/build/root.build
index 627f0ee..11c109f 100644
--- a/build/root.build
+++ b/build/root.build
@@ -10,12 +10,15 @@ ixx{*}: extension = ixx
txx{*}: extension = txx
cxx{*}: extension = cxx
-cxx.poptions =+ "-I$out_root" "-I$src_root"
-
# Disable "unknown pragma" warnings.
#
cxx.coptions += -Wno-unknown-pragmas
+if ($cxx.id == 'gcc')
+ cxx.coptions += -Wno-maybe-uninitialized -Wno-free-nonheap-object # libbutl
+
+cxx.poptions =+ "-I$out_root" "-I$src_root"
+
# Load the cli module but only if it's available. This way a distribution
# that includes pre-generated files can be built without installing cli.
# This is also the reason why we need to explicitly spell out individual