Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Commit 24099ed

Browse files
committed
Use g++ from environment
1 parent 11d9baa commit 24099ed

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ const tempFolder = `.\\tmp-${process.pid}\\`
1414
const tempSource = 'compiled.c'
1515
const tempCompiled = 'compiled.exe'
1616

17-
const gccDir = 'C:\\MinGW\\bin\\'
18-
const gcc = 'g++.exe'
19-
const compile = `${gccDir}${gcc} ${tempFolder}${tempSource} -o ${tempFolder}${tempCompiled}`
17+
const compile = `g++ ${tempFolder}${tempSource} -o ${tempFolder}${tempCompiled}`
2018

2119
/* <command> <app> <target file> <debug> */
2220
let filePath: string = (process.argv.length > 1) ? process.argv[2] : null

0 commit comments

Comments
 (0)