diff options
Diffstat (limited to 'lib/compilers/ada.js')
-rw-r--r-- | lib/compilers/ada.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/compilers/ada.js b/lib/compilers/ada.js index 271ae2b6f..3cd6a8180 100644 --- a/lib/compilers/ada.js +++ b/lib/compilers/ada.js @@ -151,12 +151,15 @@ export class AdaCompiler extends BaseCompiler { execOptions = this.getDefaultExecOptions(); } + const appHome = path.dirname(inputFilename); + // create a subdir so that files automatically created by GNAT don't // conflict with anything else in parent dir. - const temp_dir = path.join(path.dirname(inputFilename), 'tempsub'); + const temp_dir = path.join(appHome, 'tempsub'); await fs.mkdir(temp_dir); // Set the working directory to be the temp directory that has been created + execOptions.appHome = appHome; execOptions.customCwd = temp_dir; const result = await this.exec(compiler, options, execOptions); |