diff options
author | Matt Godbolt <matt@godbolt.org> | 2019-05-15 12:03:36 -0500 |
---|---|---|
committer | Matt Godbolt <matt@godbolt.org> | 2019-05-15 12:03:36 -0500 |
commit | 8807b6ae7bb1c5c0f233937a9b16fc9d9b81eff4 (patch) | |
tree | 6d37b587d29f1d7b6a367ed2a1b7beb34b0ffabb /lib/compilers/win32.js | |
parent | ef260168ab75aa8eaf8dc54bc1938a41259c9cf9 (diff) | |
download | compiler-explorer-8807b6ae7bb1c5c0f233937a9b16fc9d9b81eff4.tar.gz compiler-explorer-8807b6ae7bb1c5c0f233937a9b16fc9d9b81eff4.zip |
Ensure objdump runs in the right directory
Diffstat (limited to 'lib/compilers/win32.js')
-rw-r--r-- | lib/compilers/win32.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/compilers/win32.js b/lib/compilers/win32.js index 9e3fa3c17..7651d2ebb 100644 --- a/lib/compilers/win32.js +++ b/lib/compilers/win32.js @@ -46,11 +46,12 @@ class Win32Compiler extends BaseCompiler { } objdump(outputFilename, result, maxSize, intelAsm) { + const dirPath = path.dirname(outputFilename); outputFilename = this.getExecutableFilename(path.dirname(outputFilename), "output"); let args = ["-d", outputFilename]; if (intelAsm) args = args.concat(["-M", "intel"]); - return this.exec(this.compiler.objdumper, args, {maxOutput: 0}) + return this.exec(this.compiler.objdumper, args, {maxOutput: 0, customCwd: dirPath}) .then((objResult) => { if (objResult.code !== 0) { result.asm = "<No output: objdump returned " + objResult.code + ">"; |