summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-04-11 17:04:04 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-04-18 12:44:10 +0200
commit0d8ffd486b5d77600cc19e6e8055f836c4571638 (patch)
tree02ae5332494e02e9c687a24c3cd57395e9e5a53b
parent72c30dce66f27877baaa78152df7da7a9659686b (diff)
downloadjustbuild-0d8ffd486b5d77600cc19e6e8055f836c4571638.tar.gz
bootstrap: Disable -Werror for package builds
-rwxr-xr-xbin/bootstrap.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/bootstrap.py b/bin/bootstrap.py
index 42ee6a4d..e62dc85b 100755
--- a/bin/bootstrap.py
+++ b/bin/bootstrap.py
@@ -43,6 +43,10 @@ CONF = {}
if 'JUST_BUILD_CONF' in os.environ:
CONF = json.loads(os.environ['JUST_BUILD_CONF'])
+if "PACKAGE" in os.environ:
+ CONF["ADD_CFLAGS"] = ["-Wno-error"] + CONF.get("ADD_CFLAGS", [])
+ CONF["ADD_CXXFLAGS"] = ["-Wno-error"] + CONF.get("ADD_CXXFLAGS", [])
+
ARCHS = {
'i686':'x86',
'x86_64':'x86_64',