diff options
author | The Qt Project <gerrit-noreply@qt-project.org> | 2023-09-15 11:21:51 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2023-09-15 11:21:51 +0000 |
commit | 4b78f9a860b0496be4b8392cfbb1e4e6b992fa3d (patch) | |
tree | a1e7bc73612de83dec76d506c222c054205cb91d | |
parent | fdd451a1adfd6358d13acb91b32e1b8c3db7595f (diff) | |
parent | 468647290323778cf2e1bb55de6021644d4c6277 (diff) |
Merge "Merge 2.1 into master"
-rw-r--r-- | changelogs/changes-2.1.2.md | 3 | ||||
-rw-r--r-- | share/qbs/module-providers/Qt/templates/core.qbs | 2 | ||||
-rw-r--r-- | share/qbs/modules/Sanitizers/address/asan.qbs | 3 |
3 files changed, 7 insertions, 1 deletions
diff --git a/changelogs/changes-2.1.2.md b/changelogs/changes-2.1.2.md index 7b059e10d..b83ecdbf5 100644 --- a/changelogs/changes-2.1.2.md +++ b/changelogs/changes-2.1.2.md @@ -3,6 +3,9 @@ * Fixed scope pollution and potential crash when assigning to provider properties (QBS-1747). * Fixed potential access to freed JSValues (QBS-1751). +# Qt +* Fixed building against Qt with "profiling" build variant (QBS-1758). + # Apple * Fixed bundle module with Xcode-less profiles. * Fixed ApplicationExtension with Xcode-less profiles. diff --git a/share/qbs/module-providers/Qt/templates/core.qbs b/share/qbs/module-providers/Qt/templates/core.qbs index b980588ff..ca978eae5 100644 --- a/share/qbs/module-providers/Qt/templates/core.qbs +++ b/share/qbs/module-providers/Qt/templates/core.qbs @@ -76,6 +76,8 @@ Module { property string qtBuildVariant: { if (availableBuildVariants.contains(qbs.buildVariant)) return qbs.buildVariant; + if (qbs.buildVariant === "profiling" && availableBuildVariants.contains("release")) + return "release"; return availableBuildVariants.length > 0 ? availableBuildVariants[0] : ""; } diff --git a/share/qbs/modules/Sanitizers/address/asan.qbs b/share/qbs/modules/Sanitizers/address/asan.qbs index 9ae6f285e..9d8f5b97e 100644 --- a/share/qbs/modules/Sanitizers/address/asan.qbs +++ b/share/qbs/modules/Sanitizers/address/asan.qbs @@ -64,7 +64,8 @@ Module { flags.push("-fsanitize-address-use-after-scope"); if (detectUseAfterReturn) { if (qbs.toolchain.includes("llvm")) { - if (Utilities.versionCompare(cpp.compilerVersion, "13") >= 0) + var minVersion = qbs.toolchain.contains("xcode") ? "14" : "13"; + if (Utilities.versionCompare(cpp.compilerVersion, minVersion) >= 0) flags.push("-fsanitize-address-use-after-return=" + detectUseAfterReturn); } else if (detectUseAfterReturn === "never") { flags.push("--param", "asan-use-after-return=0"); |