diff options
author | Austin Morton <apmorton@users.noreply.github.com> | 2020-09-26 16:59:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-26 16:59:26 -0400 |
commit | 044dcfbf8885d0115e64cf75f74a0f40f54e2370 (patch) | |
tree | 1dcc3e27139600d8e85004dc2a840bb420ccc835 /lib/compilers/wsl-vc.js | |
parent | bac07fea6d2d4ed5fb7070c51e4cf3e56e3c155a (diff) | |
download | compiler-explorer-044dcfbf8885d0115e64cf75f74a0f40f54e2370.tar.gz compiler-explorer-044dcfbf8885d0115e64cf75f74a0f40f54e2370.zip |
Use ES6 Modules (#2132)
Diffstat (limited to 'lib/compilers/wsl-vc.js')
-rw-r--r-- | lib/compilers/wsl-vc.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/compilers/wsl-vc.js b/lib/compilers/wsl-vc.js index d78219d18..1576f7653 100644 --- a/lib/compilers/wsl-vc.js +++ b/lib/compilers/wsl-vc.js @@ -22,21 +22,23 @@ // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. - // The main difference from wine-vc.js is that we translate // compiler path from Unix mounted volume (/mnt/c/tmp) to Windows (c:/tmp) -const Win32VcCompiler = require('./win32-vc'), - AsmParser = require('../asm-parser-vc'), - path = require('path'), - temp = require('temp'); +import path from 'path'; + +import temp from 'temp'; + +import { VcAsmParser } from '../asm-parser-vc'; -class WslVcCompiler extends Win32VcCompiler { +import { Win32VcCompiler } from './win32-vc'; + +export class WslVcCompiler extends Win32VcCompiler { static get key() { return 'wsl-vc'; } constructor(info, env) { super(info, env); - this.asm = new AsmParser(); + this.asm = new VcAsmParser(); } filename(fn) { @@ -92,5 +94,3 @@ class WslVcCompiler extends Win32VcCompiler { return super.runCompiler(compiler, options, inputFilename, execOptions); } } - -module.exports = WslVcCompiler; |