This commit is contained in:
Ganesh Viswanathan 2018-12-27 23:38:02 -06:00
commit e2430cf40c
3 changed files with 12 additions and 2 deletions

View file

@ -95,10 +95,11 @@ proc getCurrentHeader*(fullpath: string): string =
proc getGccPaths*(mode = "c"): string =
var
ret = 0
nul = when defined(Windows): "nul" else: "/dev/null"
mmode = if mode == "cpp": "c++" else: mode
return staticExec("gcc -Wp,-v -x" & mmode & " " & nul)
(result, ret) = gorgeEx("gcc -Wp,-v -x" & mmode & " " & nul)
proc getPreprocessor*(fullpath: string, mode = "cpp"): string =
var