summaryrefslogtreecommitdiff
path: root/share/qbs/modules/cpp/windows-mingw.qbs
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2014-10-17 16:22:52 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2014-11-10 10:48:11 +0100
commit3957fb612ae250671df02af67da2123ff65af232 (patch)
tree9e271070b06c389559ffce6d2d0d243e2a6e5f5c /share/qbs/modules/cpp/windows-mingw.qbs
parent9f6b297ca49a5eb376d11d130b240a8c8629e250 (diff)
downloadqbs-3957fb612ae250671df02af67da2123ff65af232.tar.gz
Use a hashing function to construct output artfact file paths.
Modules like cpp need a way to construct unique locations for output artifacts, but the current approach of duplicating the path to the input file in the build directory can lead to excessively long file paths that hit the limit on Windows. So let's hash the path to the input file instead. Change-Id: I47dcd242d0ee90c377f2a6df8e270bbefbaf082f Reviewed-by: Thomas Epting <thomas.epting@stryker.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'share/qbs/modules/cpp/windows-mingw.qbs')
-rw-r--r--share/qbs/modules/cpp/windows-mingw.qbs2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qbs/modules/cpp/windows-mingw.qbs b/share/qbs/modules/cpp/windows-mingw.qbs
index 809485b78..b680eb681 100644
--- a/share/qbs/modules/cpp/windows-mingw.qbs
+++ b/share/qbs/modules/cpp/windows-mingw.qbs
@@ -39,7 +39,7 @@ GenericGCC {
inputs: ["rc"]
Artifact {
- filePath: ".obj/" + input.baseDir.replace(':', '') + "/" + input.completeBaseName + "_res.o"
+ filePath: ".obj/" + qbs.getHash(input.baseDir) + "/" + input.completeBaseName + "_res.o"
fileTags: ["obj"]
}