forked from qt-creator/qt-creator
Fix running lrelease and lupdate as external tools
With newer Qt versions. These want to run cl.exe on Windows, which usually is not on the PATH except for the build environment. So, use the current build environment's PATH if that is available (falling back to the system environment's PATH). Task-number: QTCREATORBUG-19892 Change-Id: Ia512b3599d2cca7a0d1169b0d673f32158cb701f Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -36,5 +36,6 @@
|
||||
<path>lrelease</path>
|
||||
<arguments>%{CurrentProject:FilePath}</arguments>
|
||||
<workingdirectory>%{CurrentProject:Path}</workingdirectory>
|
||||
<environment>PATH%3D%25%7BJS%3Aif%20%28%22%25%7BCurrentBuild%3AEnv%3APATH%7D%22%29%20%22%25%7BCurrentBuild%3AEnv%3APATH%7D%22%3B%20else%20%22%25%7BEnv%3APATH%7D%22%7D</environment>
|
||||
</executable>
|
||||
</externaltool>
|
||||
|
@@ -36,5 +36,6 @@
|
||||
<path>lupdate</path>
|
||||
<arguments>%{CurrentProject:FilePath}</arguments>
|
||||
<workingdirectory>%{CurrentProject:Path}</workingdirectory>
|
||||
<environment>PATH%3D%25%7BJS%3Aif%20%28%22%25%7BCurrentBuild%3AEnv%3APATH%7D%22%29%20%22%25%7BCurrentBuild%3AEnv%3APATH%7D%22%3B%20else%20%22%25%7BEnv%3APATH%7D%22%7D</environment>
|
||||
</executable>
|
||||
</externaltool>
|
||||
|
Reference in New Issue
Block a user