diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/root.build | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/build/root.build b/build/root.build index 4925c19..ffc1a0f 100644 --- a/build/root.build +++ b/build/root.build @@ -20,11 +20,18 @@ 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" # While we don't have any C sources to compile, we need to get the C compiler @@ -49,3 +56,11 @@ using? cli # Specify the test target for cross-testing. # test.target = $cxx.target + +# Temporary ability to build with now deprecated libpkgconf instead of +# libpkg-config. Note that libpkgconf is known to have issues on Windows and +# Mac OS so this should only be used on Linux and maybe BSDs. Also note that +# we will only keep this until upstream (again) breaks backwards compatibility +# at which point we will drop this support. +# +config [bool, config.report=false] config.build2.libpkgconf ?= false |