Skip to content

Commit

Permalink
Merge pull request #468 from icyphy/bin-dir
Browse files Browse the repository at this point in the history
file-config: place binaries in bin, not src-gen/bin
  • Loading branch information
edwardalee authored Aug 19, 2021
2 parents 8eea5d3 + 4541047 commit 8938a19
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions org.lflang/src/org/lflang/FileConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public FileConfig(Resource resource, IFileSystemAccess2 fsa, IGeneratorContext c
this.srcGenPath = getSrcGenPath(this.srcGenBasePath, this.srcPkgPath,
this.srcPath, name);
this.srcGenPkgPath = this.srcGenPath;
this.outPath = getOutputRoot(srcGenBasePath);
this.outPath = srcGenBasePath.resolve("..");
this.binPath = getBinPath(this.srcPkgPath, this.srcPath, this.outPath, context);
this.iResource = getIResource(resource);
}
Expand All @@ -201,7 +201,7 @@ protected FileConfig(FileConfig fileConfig) throws IOException {
this.srcGenPath = getSrcGenPath(this.srcGenBasePath, this.srcPkgPath,
this.srcPath, name);
this.srcGenPkgPath = this.srcGenPath;
this.outPath = getOutputRoot(srcGenBasePath);
this.outPath = srcGenBasePath.resolve("..");
this.binPath = getBinPath(this.srcPkgPath, this.srcPath, this.outPath, context);
this.iResource = getIResource(resource);
}
Expand Down Expand Up @@ -352,10 +352,6 @@ public Path getRTIBinPath() {
return this.binPath;
}

private static Path getOutputRoot(Path srcGenRoot) {
return Paths.get(".").resolve(srcGenRoot);
}

/**
* Return the output directory for generated binary files.
*/
Expand Down

0 comments on commit 8938a19

Please sign in to comment.