Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangwenx190 committed Jun 13, 2018
1 parent f634e61 commit b99f19e
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 12 deletions.
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
## build-icu-with-icc.md
An instruction to help you compile ICU with Intel C++ Compiler (ICC) on Windows.
## [optional-optimization-parameters-for-icc.md](/optional-optimization-parameters-for-icc.md)
Some optional optimization parameters for Intel C++ Compiler (ICC).

## optional-optimization-parameters-for-msvc-compiler.md
## [build-icu-with-icc.md](/build-icu-with-icc.md)
An instruction to help you compile ICU with Intel C++ Compiler (ICC) on Windows (include shared builds and static builds).

## [optional-optimization-parameters-for-msvc-compiler.md](/optional-optimization-parameters-for-msvc-compiler.md)
Some optional optimization parameters for MSVC compiler.

## build-static-version-of-qt-with-icu-and-openssl-linked.md
## [build-static-version-of-qt-with-icu-and-openssl-linked.md](/build-static-version-of-qt-with-icu-and-openssl-linked.md)
An instruction to help you compile static version of Qt with static ICU and static OpenSSL linked.

## win-build-qt-msys2.md
## [win-build-qt-msys2.md](/win-build-qt-msys2.md)
An instruction to help you compile Qt from source code on Windows through MSYS2.

## win-build-qt.bat
## [win-build-qt.bat](/win-build-qt.bat)
A Windows batch script to help you compile Qt from source code. You must know that this batch script can only help you on configuring the compiler, it will not install anything to your system, you still have to install all the prerequisites manually before running it.

**Usage**
Expand Down Expand Up @@ -61,7 +64,7 @@ Windows 10 + MSVC 2017 + Qt 5.11.0/5.6.3
(Theoretically, this batch script only supports Qt 5.x and newer, it does NOT support Qt4 or any older versions)


## win-deploy-qt.bat
## [win-deploy-qt.bat](/win-deploy-qt.bat)
A Windows batch script to help you deploy your Qt applications. This script is mainly designed for my personal use, but everyone can use it normally as well (if you don't have any special requirements).

**Usage**
Expand All @@ -85,7 +88,7 @@ Windows 10 + MSVC 2017 + Qt 5.11.0
(Theoretically, this batch script only supports Qt 5.x and newer)


## win-build-openssl.bat
## [win-build-openssl.bat](/win-build-openssl.bat)
A Windows batch script to help you build OpenSSL. You have to install [Perl](https://www.activestate.com/activeperl) before running this script.

**Usage**
Expand Down
31 changes: 31 additions & 0 deletions optional-optimization-parameters-for-icc.md
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.
7 changes: 3 additions & 4 deletions optional-optimization-parameters-for-msvc-compiler.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ QMAKE_CFLAGS_RELEASE = -O2 -Ob2 -Oi -Ot -GT -MD
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO = -O2 -Ob2 -Oi -Ot -GT -Zi -MD
```

And enable **Link Time Code Generation (LTCG)**: pass "**-ltcg**" to "**configure.bat**" while you are configuring Qt.
**NOTES**

**NOTE**

Some old Qt versions don't have "QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO" in "msvc-desktop.conf", it's all right, just ignore it.
- Remember to enable **Link Time Code Generation (LTCG)**: pass "**-ltcg**" to "**configure.bat**" while you are configuring Qt.
- Some old Qt versions don't have "QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO" in "msvc-desktop.conf", it's all right, just ignore it.

0 comments on commit b99f19e

Please sign in to comment.