forked from wangwenx190/build-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f634e61
commit b99f19e
Showing
3 changed files
with
45 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Optional optimization parameters for ICC | ||
|
||
### Notes | ||
|
||
- The following parameters are for Windows platform only, if you are using Linux, you need change a little bit. | ||
- ICC does **NOT** support "**/utf-8**", use "**-Qoption,cpp,--unicode_source_kind,"UTF-8"**" instead. | ||
|
||
### Configuration file | ||
|
||
<path_to_qt_source_code_directory>\\**qtbase\mkspecs\win32-icc\qmake.conf** | ||
|
||
For example: | ||
```text | ||
C:\Qt\src\qtbase\mkspecs\win32-icc\qmake.conf | ||
``` | ||
|
||
### Optimization parameters | ||
|
||
1. Add "**-Ob2 -Oi -Ot -GT -Qftz -Qopt-matmul -Qparallel -Quse-intel-optimized-headers -Qopenmp**" to "**QMAKE_CFLAGS_OPTIMIZE_FULL**": | ||
```text | ||
QMAKE_CFLAGS_OPTIMIZE_FULL = -O3 -Ob2 -Oi -Ot -GT -Qftz -Qopt-matmul -Qparallel -Quse-intel-optimized-headers -Qopenmp | ||
``` | ||
2. Add "**QMAKE_CFLAGS_RELEASE**" and "**QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO**" below "**QMAKE_CFLAGS_OPTIMIZE_FULL**": | ||
```text | ||
QMAKE_CFLAGS_RELEASE = $$QMAKE_CFLAGS_OPTIMIZE_FULL -MD | ||
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO = $$QMAKE_CFLAGS_OPTIMIZE_FULL -Zi -MD | ||
``` | ||
|
||
**NOTE** | ||
|
||
Remember to enable **Link Time Code Generation (LTCG)**: pass "**-ltcg**" to "**configure.bat**" while you are configuring Qt. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters