diff options
author | partouf <partouf@gmail.com> | 2022-05-25 17:28:28 +0200 |
---|---|---|
committer | partouf <partouf@gmail.com> | 2022-05-25 17:28:28 +0200 |
commit | 2c02f324493f2a48caae4fc1c398688c612a948c (patch) | |
tree | ec48ab2406bab28806368f6850128d27266ca06a /lib/compilers | |
parent | f76cc542261d908517772d487ab5f4b08b5a2ae7 (diff) | |
download | compiler-explorer-2c02f324493f2a48caae4fc1c398688c612a948c.tar.gz compiler-explorer-2c02f324493f2a48caae4fc1c398688c612a948c.zip |
fix ada; set apphome to allow subdir customcwdgh-3094
Diffstat (limited to 'lib/compilers')
-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); |