diff options
author | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2017-03-10 15:17:40 +0100 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2017-03-13 08:25:36 +0000 |
commit | a76474f5c54e74734b5fbe19fe28f36929205922 (patch) | |
tree | dce27adc2e06ffec97b0c3b14f6be34db722dee2 | |
parent | ef470a1d10c619f28614140d71e694253e8e6b47 (diff) | |
download | qt-creator-a76474f5c54e74734b5fbe19fe28f36929205922.tar.gz |
ProjectExplorer: Evaluate -mfloat-abi for macros
The option -mfloat-abi sets macros (in this case __ARM_PCS_VFP), so it
should be evaluated while determining the macros for the code model and
the clang static analyzer.
Task-number: QTCREATORBUG-17797
Change-Id: I22a72d31956521b7e2ad7c1126036b25cfe0898d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r-- | src/plugins/projectexplorer/gcctoolchain.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/gcctoolchain.cpp b/src/plugins/projectexplorer/gcctoolchain.cpp index c65e0ce2a4..12337069e4 100644 --- a/src/plugins/projectexplorer/gcctoolchain.cpp +++ b/src/plugins/projectexplorer/gcctoolchain.cpp @@ -377,6 +377,7 @@ QByteArray GccToolChain::predefinedMacros(const QStringList &cxxflags) const || a == QLatin1String("-m64") || a == QLatin1String("-m96bit-long-double") || a == QLatin1String("-mabm") || a == QLatin1String("-maes") || a.startsWith(QLatin1String("-march=")) || a == QLatin1String("-mavx") + || a.startsWith(QLatin1String("-mfloat-abi")) || a.startsWith(QLatin1String("-masm=")) || a == QLatin1String("-mcx16") || a == QLatin1String("-mfma") || a == QLatin1String("-mfma4") || a == QLatin1String("-mlwp") || a == QLatin1String("-mpclmul") |