forked from qt-creator/qt-creator
		
	Clang: Remove duplicated targets arguments
We always set the target explicitly (in a certain way), so exclude the target arguments coming from the build system and the (possibly manually specified) platform codegen flags of the toolchain. Change-Id: I74bbec67f5960f05b50cf9c5aa11875c71a5161f Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
		@@ -751,6 +751,16 @@ void CompilerOptionsBuilder::evaluateCompilerFlags()
 | 
			
		||||
            continue;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // As we always set the target explicitly, filter out target args.
 | 
			
		||||
        if (!m_projectPart.toolChainTargetTriple.isEmpty()) {
 | 
			
		||||
            if (option.startsWith("--target="))
 | 
			
		||||
                continue;
 | 
			
		||||
            if (option == "-target") {
 | 
			
		||||
                skipNext = true;
 | 
			
		||||
                continue;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (option == includeUserPathOption || option == includeSystemPathOption
 | 
			
		||||
            || option == includeUserPathOptionWindows) {
 | 
			
		||||
            skipNext = true;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user