cpufeatures
Provides support for fine-tuning CPU features. More...
Since: | Qbs 1.10 |
Properties
- arm_neon : bool
- arm_vfpv4 : bool
- mips_dsp : bool
- mips_dspr2 : bool
- x86_avx2 : bool
- x86_avx : bool
- x86_avx512bw : bool
- x86_avx512cd : bool
- x86_avx512dq : bool
- x86_avx512er : bool
- x86_avx512f : bool
- x86_avx512ifma : bool
- x86_avx512pf : bool
- x86_avx512vbmi : bool
- x86_avx512vl : bool
- x86_f16c : bool
- x86_sse2 : bool
- x86_sse3 : bool
- x86_sse4_1 : bool
- x86_sse4_2 : bool
- x86_ssse3 : bool
Detailed Description
The cpufeatures
module offers properties for enabling or disabling specific CPU features. Use it if you want to override the compiler defaults for a given platform.
The compiler rules in the cpp module evaluate this module's properties and generate matching compiler flags. All properties in this module are of type bool
and have the following semantics:
- The default value
undefined
has no effect on the compiler command line. - If the value is
true
and the compiler has a flag to enable the feature, that flag is added to the command line if it is applicable to the current architecture. For example, enabling the propertyx86_sse2
would result in the GCC option-msse2
. - If the value is
false
and the compiler has a flag to disable the feature, that flag is added to the command line if it is applicable to the current architecture. For example, disabling the propertyx86_sse2
would result in the GCC option-no-msse2
.
Property Documentation
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.