Core: Change default build directory

Use %{JS: Util.asciify(...)} around the configurable parts of the
default build directory. This prevents encoding issues with the build
directory name that can break the build.

Note: You need to go to Tools>Options>Build & Run>General and Reset
  the default build directory for this to take effect for future
  projects!

Task-number: QTCREATORBUG-16380
Change-Id: Id4855e2c488aab0c0919af2dc9f0ef89b130fbf7
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tobias Hunger
2017-01-20 16:40:30 +01:00
parent b5730af461
commit 35690ab66e

View File

@@ -201,7 +201,7 @@ const char DEFAULT_THEME[] = "flat";
const char TR_CLEAR_MENU[] = QT_TRANSLATE_NOOP("Core", "Clear Menu");
const char DEFAULT_BUILD_DIRECTORY[] = "../build-%{CurrentProject:Name}-%{CurrentKit:FileSystemName}-%{CurrentBuild:Name}";
const char DEFAULT_BUILD_DIRECTORY[] = "../%{JS: Util.asciify(\"build-%{CurrentProject:Name}-%{CurrentKit:FileSystemName}-%{CurrentBuild:Name}\")}";
const int TARGET_ICON_SIZE = 32;