diff options
author | Joerg Bornemann <joerg.bornemann@theqtcompany.com> | 2014-12-01 18:21:22 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@theqtcompany.com> | 2014-12-02 10:20:36 +0100 |
commit | d751d1a47a6bf313f75ca9e0cb34a5117c2c511e (patch) | |
tree | 273e950412c76f4b3569b9d992d3655d64f9c2d6 | |
parent | ce91f562feb9b6f45ba8bd5b3fe29e875be7f67f (diff) |
fix release-with-debug-info build with MSVC
Make debug/release runtime decision dependent of qbs.enableDebugCode
instead of qbs.debugInformation.
Change-Id: Ifc3b134f8979f2196ef58d8b1603104859f62736
Reviewed-by: Thomas Epting <thomas.epting@stryker.com>
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
-rw-r--r-- | share/qbs/modules/cpp/msvc.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qbs/modules/cpp/msvc.js b/share/qbs/modules/cpp/msvc.js index 9961ab5ce..7773065d1 100644 --- a/share/qbs/modules/cpp/msvc.js +++ b/share/qbs/modules/cpp/msvc.js @@ -26,7 +26,7 @@ function prepareCompiler(product, input, outputs) { var rtl = ModUtils.moduleProperty(product, "runtimeLibrary"); if (rtl) { rtl = (rtl === "static" ? "/MT" : "/MD"); - if (debugInformation) + if (product.moduleProperty("qbs", "enableDebugCode")) rtl += "d"; args.push(rtl); } |