diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/bootstrap.build | 1 | ||||
-rw-r--r-- | build/export.build | 1 | ||||
-rw-r--r-- | build/root.build | 15 |
3 files changed, 14 insertions, 3 deletions
diff --git a/build/bootstrap.build b/build/bootstrap.build index f67c670..08b0d79 100644 --- a/build/bootstrap.build +++ b/build/bootstrap.build @@ -1,5 +1,4 @@ # file : build/bootstrap.build -# copyright : Copyright (c) 2014-2019 Code Synthesis Ltd # license : MIT; see accompanying LICENSE file project = bpkg diff --git a/build/export.build b/build/export.build index bd03c02..cf5fbe7 100644 --- a/build/export.build +++ b/build/export.build @@ -1,5 +1,4 @@ # file : build/export.build -# copyright : Copyright (c) 2014-2019 Code Synthesis Ltd # license : MIT; see accompanying LICENSE file $out_root/ diff --git a/build/root.build b/build/root.build index b8e3460..4a3a866 100644 --- a/build/root.build +++ b/build/root.build @@ -1,5 +1,4 @@ # file : build/root.build -# copyright : Copyright (c) 2014-2019 Code Synthesis Ltd # license : MIT; see accompanying LICENSE file cxx.std = latest @@ -16,6 +15,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 \ +-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" @@ -26,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] |