1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Bug 326671 - [Performance] MBS generated makefiles for static library projects add dependencies on referenced archives

This commit is contained in:
James Blackburn 2011-02-13 16:46:19 +00:00
parent 7cf13bb21c
commit 2d69ae770d

View file

@ -1293,8 +1293,12 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator2 {
// } // }
// Get all the projects the build target depends on // Get all the projects the build target depends on
// IProject[] refdProjects = null; // If this configuration produces a static archive, building the archive doesn't depend on the output
IConfiguration[] refConfigs = ManagedBuildManager.getReferencedConfigurations(config); // from any of the referenced configurations
IConfiguration[] refConfigs = new IConfiguration[0];
if (!ManagedBuildManager.BUILD_ARTEFACT_TYPE_PROPERTY_STATICLIB.equals(config.getBuildArtefactType().getId()))
refConfigs = ManagedBuildManager.getReferencedConfigurations(config);
/* try { /* try {
refdProjects = project.getReferencedProjects(); refdProjects = project.getReferencedProjects();
} catch (CoreException e) { } catch (CoreException e) {