diff options
| author | Joerg Bornemann <joerg.bornemann@digia.com> | 2013-10-10 11:56:50 +0200 |
|---|---|---|
| committer | Christian Kandeler <christian.kandeler@digia.com> | 2013-10-10 12:46:26 +0200 |
| commit | 8d459124cbf7b689970e1d8958e9c6aeed49b3ad (patch) | |
| tree | 306e5a202e616fd79f042d4e47613b52fe09d21b | |
| parent | 98081e458d0806393e9860104ab460e5409ab2a2 (diff) | |
| download | qbs-8d459124cbf7b689970e1d8958e9c6aeed49b3ad.tar.gz | |
setup Qt's run environment on Windows only
Change-Id: I2e90d380615b825210f7830bfc37c16c013b469c
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
| -rw-r--r-- | share/qbs/modules/Qt/core/core.qbs | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/share/qbs/modules/Qt/core/core.qbs b/share/qbs/modules/Qt/core/core.qbs index 55f4ca8bb..452605885 100644 --- a/share/qbs/modules/Qt/core/core.qbs +++ b/share/qbs/modules/Qt/core/core.qbs @@ -128,15 +128,13 @@ Module { } setupRunEnvironment: { - var v = getenv('PATH') || '' - if (v.length > 0 && v.charAt(0) != ';') - v = ';' + v - var y = binPath - if (qbs.targetOS.contains('windows')) - v = FileInfo.toWindowsSeparators(y) + v - else - v = y + v - putenv('PATH', v) + if (qbs.targetOS.contains('windows')) { + var v = getenv('PATH') || ''; + if (v.length > 0 && v.charAt(0) != ';') + v = ';' + v; + v = FileInfo.toWindowsSeparators(binPath) + v; + putenv('PATH', v); + } } FileTagger { |
