Skip to main content
summaryrefslogtreecommitdiffstats
path: root/cross
diff options
context:
space:
mode:
authorMarc-Andre Laperle2012-01-27 01:25:08 -0500
committerMarc-Andre Laperle2012-01-27 01:32:18 -0500
commitfcb45b96599fc05a0afa64f63360d99f2ea3fa3d (patch)
treedb30d6ed3d3bfd8347c7f18ecf91d094ad222e55 /cross
parent45878bd81ad9fbde604b9b2d1197799b9de0e4e1 (diff)
downloadorg.eclipse.cdt-fcb45b96599fc05a0afa64f63360d99f2ea3fa3d.tar.gz
org.eclipse.cdt-fcb45b96599fc05a0afa64f63360d99f2ea3fa3d.tar.xz
org.eclipse.cdt-fcb45b96599fc05a0afa64f63360d99f2ea3fa3d.zip
Bug 369887 - Scanner discovery doesn't run after creating a Cross GCC
project, only after the first build
Diffstat (limited to 'cross')
-rw-r--r--[-rwxr-xr-x]cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/build/crossgcc/SetCrossCommandProcess.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/build/crossgcc/SetCrossCommandProcess.java b/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/build/crossgcc/SetCrossCommandProcess.java
index bb577de68d..3c60632887 100755..100644
--- a/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/build/crossgcc/SetCrossCommandProcess.java
+++ b/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/build/crossgcc/SetCrossCommandProcess.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Wind River Systems, Inc. and others.
+ * Copyright (c) 2009, 2012 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -14,6 +14,7 @@ import java.util.Map;
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.scannerconfig.CfgDiscoveredPathManager;
import org.eclipse.cdt.build.internal.core.scannerconfig2.CfgScannerConfigProfileManager;
import org.eclipse.cdt.core.templateengine.TemplateCore;
@@ -112,6 +113,10 @@ public class SetCrossCommandProcess extends ProcessRunner {
}
ManagedBuildManager.saveBuildInfo(project, true);
+
+ for (IConfiguration config : configs) {
+ ScannerConfigBuilder.build(config, ScannerConfigBuilder.PERFORM_CORE_UPDATE, monitor);
+ }
}
}

Back to the top