summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2022-07-25 08:49:12 +0300
committerIvan Komissarov <ABBAPOH@gmail.com>2022-07-25 11:23:10 +0000
commit11bc4d729a1938f1aac39c0cc513b241f73fa3d4 (patch)
tree40c9a6e96e758d8263ae1a337dd6d62155260af5 /share
parentd78325aac8104daf4aa80ea4a76b53f6fbc0e0e5 (diff)
downloadqbs-11bc4d729a1938f1aac39c0cc513b241f73fa3d4.tar.gz
Fix protobuf on macos 11
Otherwise, proto files are not linked with the missing reference to ~InternalMetadata(). Similar issue is here https://github.com/google/oss-fuzz/issues/7736. Change-Id: I4ad04fbcb2c49f2ab435ca560de623fae97754b4 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'share')
-rw-r--r--share/qbs/modules/protobuf/protobuf.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/qbs/modules/protobuf/protobuf.js b/share/qbs/modules/protobuf/protobuf.js
index abc2c2c4d..60d6f48e4 100644
--- a/share/qbs/modules/protobuf/protobuf.js
+++ b/share/qbs/modules/protobuf/protobuf.js
@@ -75,6 +75,7 @@ function cppArtifact(outputDir, input, tags, suffix) {
filePath: FileInfo.joinPaths(outputDir, FileInfo.baseName(input.fileName) + suffix),
cpp: {
includePaths: [].concat(input.cpp.includePaths, outputDir),
+ defines: ["NDEBUG"],
warningLevel: "none",
}
};