diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/root.build | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/build/root.build b/build/root.build index 1dcb07b..4a3a866 100644 --- a/build/root.build +++ b/build/root.build @@ -14,9 +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 # libbutl +{ + 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" @@ -27,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] |