mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Bug 315396: EDC launch imported executable causes divide by zero exception
This commit is contained in:
parent
e938acbcb4
commit
21b37f0e95
1 changed files with 3 additions and 0 deletions
|
@ -301,6 +301,9 @@ public abstract class AbstractCLaunchDelegate2 extends LaunchConfigurationDelega
|
|||
try {
|
||||
// Number of times we'll end up calling IProject.build()
|
||||
final int buildCount = (buildConfigID == null) ? 1 : project.getDescription().getBuildSpec().length;
|
||||
if (buildCount == 0) {
|
||||
return; // the case for an imported-executable project; see bugzilla 315396
|
||||
}
|
||||
final int subtaskTicks = TOTAL_TICKS / buildCount;
|
||||
|
||||
if (buildConfigID != null) {
|
||||
|
|
Loading…
Add table
Reference in a new issue