From 36566a50159fcfcef19937495303f67c675ccb0a Mon Sep 17 00:00:00 2001 From: Antonio Di Monaco Date: Fri, 12 Jul 2019 10:34:59 +0200 Subject: [PATCH] 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 Reviewed-by: Nikolai Kosjar --- src/plugins/projectexplorer/gcctoolchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/gcctoolchain.cpp b/src/plugins/projectexplorer/gcctoolchain.cpp index 8d749ea79a3..19bd7c0a52d 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"