mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 04:45:38 +02:00
This commit is contained in:
parent
b77acc0bee
commit
a94a0fef49
1 changed files with 2 additions and 3 deletions
|
@ -15,7 +15,6 @@ import java.util.HashMap;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.eclipse.cdt.make.core.MakeBuilderUtil;
|
|
||||||
import org.eclipse.cdt.make.core.IMakeBuilderInfo;
|
import org.eclipse.cdt.make.core.IMakeBuilderInfo;
|
||||||
import org.eclipse.cdt.make.core.IMakeCommonBuildInfo;
|
import org.eclipse.cdt.make.core.IMakeCommonBuildInfo;
|
||||||
import org.eclipse.cdt.make.core.IMakeTarget;
|
import org.eclipse.cdt.make.core.IMakeTarget;
|
||||||
|
@ -173,7 +172,7 @@ public class MakeTarget extends PlatformObject implements IMakeTarget {
|
||||||
}
|
}
|
||||||
|
|
||||||
public IPath getBuildLocation() {
|
public IPath getBuildLocation() {
|
||||||
return MakeBuilderUtil.getBuildDirectory(container.getProject(), container.getProjectRelativePath(), manager.getBuilderID(targetBuilderID));
|
return container.getLocation();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBuildLocation(IPath location) throws CoreException {
|
public void setBuildLocation(IPath location) throws CoreException {
|
||||||
|
@ -294,7 +293,7 @@ public class MakeTarget extends PlatformObject implements IMakeTarget {
|
||||||
info.setEnvironment(getExpandedEnvironment());
|
info.setEnvironment(getExpandedEnvironment());
|
||||||
info.setAppendEnvironment(appendEnvironment());
|
info.setAppendEnvironment(appendEnvironment());
|
||||||
if (container != null) {
|
if (container != null) {
|
||||||
info.setBuildAttribute(IMakeCommonBuildInfo.BUILD_LOCATION, getBuildLocation().toString());
|
info.setBuildAttribute(IMakeCommonBuildInfo.BUILD_LOCATION, container.getFullPath().toString());
|
||||||
}
|
}
|
||||||
IMakeBuilderInfo projectInfo = MakeCorePlugin.createBuildInfo(getProject(), builderID);
|
IMakeBuilderInfo projectInfo = MakeCorePlugin.createBuildInfo(getProject(), builderID);
|
||||||
info.setErrorParsers(projectInfo.getErrorParsers());
|
info.setErrorParsers(projectInfo.getErrorParsers());
|
||||||
|
|
Loading…
Add table
Reference in a new issue