Skip to content

Commit

Permalink
Issue #167 - Core Build Makefile project build output folder.
Browse files Browse the repository at this point in the history
* Issue Issue #167 was partly solved by PR #192 (commit 7911ac8).
  This change fixes the problem that after closing and opening a
  Makefile project the wrong build output location was used for the
  default Run configuration.
  The cause was that StandardBuildConfiguration.buildContainer was
  null after opening the project.
* Fixed the problem that the output binary could not be found during
  launching when the user set the Build Output Location to "Build in
  project directory".

Fixes #167
  • Loading branch information
ewaterlander authored and jonahgraham committed Mar 16, 2023
1 parent 65ac74f commit 1419cd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void generate(Map<String, Object> model, IProgressMonitor monitor) throws
}
}

entries.add(CoreModel.newOutputEntry(buildFolder.getFullPath()));
entries.add(CoreModel.newOutputEntry(project.getFullPath()));
CoreModel.getDefault().create(project).setRawPathEntries(entries.toArray(new IPathEntry[entries.size()]),
monitor);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public StandardBuildConfiguration(IBuildConfiguration config, String name) throw
public StandardBuildConfiguration(IBuildConfiguration config, String name, IToolChain toolChain, String launchMode)
throws CoreException {
super(config, name, toolChain, launchMode);
applyProperties();
setupEnvVars();
}

Expand Down

0 comments on commit 1419cd2

Please sign in to comment.