aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/imports/qbs/PathTools/path-tools.js
diff options
context:
space:
mode:
Diffstat (limited to 'share/qbs/imports/qbs/PathTools/path-tools.js')
-rw-r--r--share/qbs/imports/qbs/PathTools/path-tools.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/qbs/imports/qbs/PathTools/path-tools.js b/share/qbs/imports/qbs/PathTools/path-tools.js
index c39ddcab1..21edfcdb3 100644
--- a/share/qbs/imports/qbs/PathTools/path-tools.js
+++ b/share/qbs/imports/qbs/PathTools/path-tools.js
@@ -119,7 +119,9 @@ function importLibraryFilePath(product) {
}
function debugInfoIsBundle(product) {
- var flags = product.moduleProperty("cpp", "dsymutilFlags");
+ if (!product.moduleProperty("qbs", "targetOS").contains("darwin"))
+ return false;
+ var flags = product.moduleProperty("cpp", "dsymutilFlags") || [];
return !flags.contains("-f") && !flags.contains("--flat");
}