Skip to content

Commit

Permalink
Remove "-LTCG" option, which I think is rarely used. And reverse the …
Browse files Browse the repository at this point in the history
…last commit.
  • Loading branch information
wangwenx190 committed Jun 3, 2018
1 parent aec0132 commit 96e6fc4
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions win-build-qt.bat
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,7 @@ IF NOT EXIST "%_VC_BAT_PATH%" SET _VC_BAT_PATH=
IF NOT EXIST "%_VC_BAT_PATH%" ECHO Cannot find [vcvarsall.bat], if you did't install VS in it's default location, please change this script && GOTO Fin
IF /I "%_QT_COMPILER:~0,9%" == "win32-icc" SET "_VC_BAT_PATH=%ProgramFiles(x86)%\IntelSWTools\compilers_and_libraries\windows\bin\ipsxe-comp-vars.bat"
IF NOT EXIST "%_VC_BAT_PATH%" ECHO You are using Intel C++ Compiler, however, this script cannot find [ipsxe-comp-vars.bat], if you didn't install ICC in it's default location, please change this script && GOTO Fin
REM If you are using MinGW/MinGW-w64, adding "-ltcg" will result in compilation failure, I don't know why
SET "_LTCG_ENABLED=False"
IF /I "%_QT_COMPILER:~-4%" == "msvc" SET "_LTCG_ENABLED=True"
IF /I "%_QT_COMPILER:~0,9%" == "win32-icc" SET "_LTCG_ENABLED=True"
IF /I "%_LTCG_ENABLED%" == "True" SET "_EXTRA_PARAMS=-ltcg %_EXTRA_PARAMS%"
IF /I "%_BUILD_TYPE:~0,7%" == "-static" (
REM If you are using MinGW/MinGW-w64, adding "-static-runtime" will result in compilation failure, I don't know why
IF /I "%_LTCG_ENABLED%" == "True" SET "_BUILD_TYPE=-static-runtime %_BUILD_TYPE%"
)
SET "_CFG_PARAMS=-opensource -confirm-license %_COMP_MODE% %_BUILD_TYPE% -platform %_QT_COMPILER% -qt-sqlite -qt-zlib -qt-libjpeg -qt-libpng -qt-freetype -qt-pcre -qt-harfbuzz -silent -skip qtdoc -skip qttools -skip qttranslations -nomake examples -nomake tests -opengl dynamic -prefix %_INSTALL_DIR% %_EXTRA_PARAMS%"
SET "_CFG_PARAMS=-opensource -confirm-license %_COMP_MODE% %_BUILD_TYPE% -platform %_QT_COMPILER% -qt-sqlite -qt-zlib -qt-libjpeg -qt-libpng -qt-freetype -qt-pcre -qt-harfbuzz -silent -nomake examples -nomake tests -opengl dynamic -prefix %_INSTALL_DIR% %_EXTRA_PARAMS%"
SET "_CFG_BAT=%_ROOT%\configure.bat"
REM If you don't have jom, use nmake instead, which is provided by Visual Studio.
REM nmake is very slow, I recommend you use jom, you can download the latest jom
Expand Down

0 comments on commit 96e6fc4

Please sign in to comment.