aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAntonio Di Monaco <tony@becrux.com>2019-07-12 10:34:59 +0200
committerAntonio Di Monaco <tony@becrux.com>2019-07-17 15:11:35 +0000
commit36566a50159fcfcef19937495303f67c675ccb0a (patch)
treeb480a0afcb542bd0d2d615e57228a6cc275bdf78 /src
parentb7a96a9342adfdb65469c0f132af54aaeebfef01 (diff)
Add support for LLVM -mllvm parameter
The -mllvm parameter is used to pass options to the LLVM component through the Clang command line. As it assumes that the following option contains the parameter that needs to be passed to LLVM, cannot be handled like any other "-m" option. Change-Id: I6d0347414f891d14238875158f9c5fc689907ccf Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/projectexplorer/gcctoolchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/gcctoolchain.cpp b/src/plugins/projectexplorer/gcctoolchain.cpp
index 8d749ea79a..19bd7c0a52 100644
--- a/src/plugins/projectexplorer/gcctoolchain.cpp
+++ b/src/plugins/projectexplorer/gcctoolchain.cpp
@@ -382,7 +382,7 @@ ToolChain::MacroInspectionRunner GccToolChain::createMacroInspectionRunner() con
if (++iArg < allFlags.length() && !arguments.contains(a))
arguments << a << allFlags.at(iArg);
} else if (a == "--sysroot" || a == "-isysroot" || a == "-D" || a == "-U"
- || a == "-gcc-toolchain" || a == "-target") {
+ || a == "-gcc-toolchain" || a == "-target" || a == "-mllvm") {
if (++iArg < allFlags.length())
arguments << a << allFlags.at(iArg);
} else if (a.startsWith("-m") || a == "-Os" || a == "-O0" || a == "-O1" || a == "-O2"