diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-08-26 12:00:50 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-08-26 18:32:44 +0200 |
commit | 9004575f4b2aee7bf3c55522affd10555d134c51 (patch) | |
tree | 8b2ea3759976ce2f9d10dfbed361e3c38fdd333e /mkspecs/features/default_post.prf | |
parent | a6a216e31041f6c878a37d9af169f221d99978c8 (diff) |
qmake: Add support for C17/C18
Make it possible to select the C17/C18 standard with
CONFIG += c17
or
CONFIG += c18
Pick-to: 6.2 5.15
Fixes: QTBUG-96026
Change-Id: I719d22366c3efda009118d58ead173a25ed285c0
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'mkspecs/features/default_post.prf')
-rw-r--r-- | mkspecs/features/default_post.prf | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mkspecs/features/default_post.prf b/mkspecs/features/default_post.prf index b2985fe89c..18f8b8ad9a 100644 --- a/mkspecs/features/default_post.prf +++ b/mkspecs/features/default_post.prf @@ -153,7 +153,8 @@ c++1z|c++2a { unset(cxxstd) } -c99|c11 { +c99|c11|c17|c18 { + c17|c18: cstd = C17 c11: cstd = C11 else: cstd = C99 |