diff options
author | Jake Petroules <jake.petroules@qt.io> | 2017-05-09 17:06:18 -0700 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2017-08-11 16:07:45 +0000 |
commit | d0404591b1d0c6ef4e040f578d8c56b3001abb3e (patch) | |
tree | 0051337c66eca0fe152e3f1e76e9da0247f2a861 /doc | |
parent | ed99a39fd9bb38163d81cef5011f7bb4401a9eef (diff) |
Automatically determine built-in compiler defines
This provides users with access to the full list of macros defined by
the MSVC, GCC, Clang, or MinGW compiler in use.
Change-Id: I6e7f6841bbc18aed13958724b268283d97b17320
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/reference/modules/cpp-module.qdoc | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/doc/reference/modules/cpp-module.qdoc b/doc/reference/modules/cpp-module.qdoc index 1ff0eefdb..580e4519b 100644 --- a/doc/reference/modules/cpp-module.qdoc +++ b/doc/reference/modules/cpp-module.qdoc @@ -771,12 +771,14 @@ \li Whether to always use lipo when combining Mach-O output files on Apple platforms, even if there is only one CPU architecture. The should not normally need to be changed. \row - \li compilerDefines - \li \c{stringList} - \li 1.0 + \li compilerDefinesByLanguage + \li \c{string} to \c{string} to \c{string} map + \li 1.10 \li \c{undefined} - \li List of preprocessor macros that are used for all projects that are using the current - toolchain. User project files usually do not set this property. + \li Map of language tags to list of preprocessor macros that are used for all projects that + are using the current toolchain. User project files usually do not set this property. + \note See \c{cpp.enableCompilerDefinesByLanguage}. This property will not be usable + without also setting that one. \row \li compilerIncludePaths \li \c{pathList} @@ -826,6 +828,14 @@ \li List of distribution-specific library search paths, prioritized after \c{systemLibraryPaths}. Intended for use by module authors implementing support for new operating systems/distributions. User project files should not set this property. + \row + \li enableCompilerDefinesByLanguage + \li \c{stringList} + \li 1.10 + \li \c{undefined} + \li List of languages (one or more of \c{"c"}, \c{"cpp"}, \c{"objc"}, \c{"objcpp"}) to + extract the list of default compiler defines for in \c{cpp.compilerDefinesByLanguage}. + Because this has performance implications, no languages are enabled by default. \endtable |