mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Bug 313370 - fixed GCC Per File scanner discovery by allowing the builder to run normally again. Fixed the profile to use gcc arguments, not make which it does already. Also added support for --sysroot which has major affects on the gcc built-ins.
This commit is contained in:
parent
501ba90f28
commit
64a914802e
5 changed files with 4 additions and 9 deletions
|
@ -140,8 +140,7 @@
|
|||
</buildOutputProvider>
|
||||
<scannerInfoProvider providerId="makefileGenerator">
|
||||
<run
|
||||
arguments="-f ${project_name}_scd.mk"
|
||||
command="make"
|
||||
arguments="-E -P -v -dD"
|
||||
class="org.eclipse.cdt.make.internal.core.scannerconfig2.SCDMakefileGenerator"/>
|
||||
<scannerInfoConsoleParser class="org.eclipse.cdt.make.internal.core.scannerconfig.gnu.GCCPerFileSIPConsoleParser"/>
|
||||
</scannerInfoProvider>
|
||||
|
|
|
@ -128,6 +128,7 @@ public class GCCPerFileBOPConsoleParserUtility extends AbstractGCCBOPConsolePars
|
|||
String token = tokens[i];
|
||||
//Target specific options: see GccScannerInfoConsoleParser
|
||||
if (token.startsWith("-m") || //$NON-NLS-1$
|
||||
token.startsWith("--sysroot") || //$NON-NLS-1$
|
||||
token.equals("-ansi") || //$NON-NLS-1$
|
||||
token.equals("-posix") || //$NON-NLS-1$
|
||||
token.equals("-pthread") || //$NON-NLS-1$
|
||||
|
|
|
@ -123,6 +123,7 @@ public class GCCScannerInfoConsoleParser extends AbstractGCCBOPConsoleParser {
|
|||
}
|
||||
}
|
||||
else if (token.startsWith("-m") || //$NON-NLS-1$
|
||||
token.startsWith("--sysroot") || //$NON-NLS-1$
|
||||
token.equals("-ansi") || //$NON-NLS-1$
|
||||
token.equals("-nostdinc") || //$NON-NLS-1$
|
||||
token.equals("-posix") || //$NON-NLS-1$
|
||||
|
|
|
@ -45,7 +45,7 @@ public class ScannerConfigNature implements IProjectNature {
|
|||
command.setBuilding(IncrementalProjectBuilder.AUTO_BUILD, false);
|
||||
command.setBuilding(IncrementalProjectBuilder.CLEAN_BUILD, false);
|
||||
command.setBuilding(IncrementalProjectBuilder.FULL_BUILD, true);
|
||||
command.setBuilding(IncrementalProjectBuilder.INCREMENTAL_BUILD, false);
|
||||
command.setBuilding(IncrementalProjectBuilder.INCREMENTAL_BUILD, true);
|
||||
|
||||
ICommand[] newCommands = new ICommand[commands.length + 1];
|
||||
System.arraycopy(commands, 0, newCommands, 0, commands.length);
|
||||
|
|
|
@ -27,7 +27,6 @@ import java.util.Set;
|
|||
|
||||
import org.eclipse.cdt.build.core.scannerconfig.CfgInfoContext;
|
||||
import org.eclipse.cdt.build.core.scannerconfig.ICfgScannerConfigBuilderInfo2Set;
|
||||
import org.eclipse.cdt.build.core.scannerconfig.ScannerConfigBuilder;
|
||||
import org.eclipse.cdt.build.internal.core.scannerconfig2.CfgScannerConfigProfileManager;
|
||||
import org.eclipse.cdt.core.CCorePlugin;
|
||||
import org.eclipse.cdt.core.ConsoleOutputStream;
|
||||
|
@ -558,11 +557,6 @@ public class CommonBuilder extends ACBuilder {
|
|||
if(isForeground)
|
||||
updateOtherConfigs(info, builders, kind);
|
||||
|
||||
if (kind == INCREMENTAL_BUILD || kind == FULL_BUILD || kind == AUTO_BUILD) {
|
||||
// Update project model with scanner info
|
||||
ScannerConfigBuilder.build(activeCfg, ScannerConfigBuilder.SKIP_SI_DISCOVERY, new SubProgressMonitor(monitor, 1));
|
||||
}
|
||||
|
||||
monitor.done();
|
||||
return refProjects;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue