diff options
| author | Alexandru Croitor <alexandru.croitor@qt.io> | 2025-12-17 17:21:46 +0100 |
|---|---|---|
| committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2025-12-18 21:31:27 +0100 |
| commit | b33b746bf1efdb951a7fcf84d82ac23044196619 (patch) | |
| tree | 27724e969bb49ca1e1be510ea6c71b4cb38f3ae8 /doc/src/snippets/code | |
| parent | 5def307d5619aa4ec971b9367450e3d037e29190 (diff) | |
CMake: Implement -optimized-tools configure flag
Add a new -optimized-tools configure flag (the cmake flag is
-DQT_FEATURE_optimized_tools=ON ).
The flag makes the Bootstrap library and all qt_internal_add_tool
targets to build with '-O3' optimizations when configuring a -debug Qt
(also for the debug part of a -debug-and-release Qt).
Allow to opt out of this behavior on a per-target or per-project basis
by setting -DQT_FORCE_NO_OPTIMIZE_<target>=ON or
-DQT_FORCE_NO_OPTIMIZE_<project_name>=ON.
For example, to disable optimized flags for the qmlcachegen tool:
-DQT_FORCE_NO_OPTIMIZE_qmlcachegen=ON
Or for the whole qtdeclarative module:
-DQT_FORCE_NO_OPTIMIZE_qtdeclarative=ON
This allows building an optimized moc, while still being able to
easily debug qtdeclarative tools.
Inspired by the unmerged 7b4e9606204de7445e944f832f47fd20bdc2d000
Inspired by the unmerged c9658b2b3c5e3fb93b881f30d031f11001bd597d
Change-Id: I9350c03df8a23dadbe3df3df84f2777aa71bd105
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'doc/src/snippets/code')
0 files changed, 0 insertions, 0 deletions
