diff options
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; |