parent
b49ac11a77
commit
a3ae52de1a
1 changed files with 3 additions and 3 deletions
|
|
@ -14,7 +14,7 @@
|
||||||
# compilation.
|
# compilation.
|
||||||
import os, strutils
|
import os, strutils
|
||||||
|
|
||||||
when defined(openbsd):
|
when defined(openbsd) or defined(freebsd) or defined(netbsd):
|
||||||
const
|
const
|
||||||
cc = "cc -o $# $#.c"
|
cc = "cc -o $# $#.c"
|
||||||
cpp = "cc -E -o $#.i $#.c"
|
cpp = "cc -E -o $#.i $#.c"
|
||||||
|
|
@ -98,8 +98,8 @@ proc main =
|
||||||
f.write(nimfile % [other])
|
f.write(nimfile % [other])
|
||||||
close(f)
|
close(f)
|
||||||
|
|
||||||
let cCompile = when defined(openbsd): ccLinkMath else: cc
|
let cCompile = defined(openbsd) or defined(freebsd) or defined(netbsd): ccLinkMath else: cc
|
||||||
let cppCompile = when defined(openbsd): cppLinkMath else: cpp
|
let cppCompile = defined(openbsd) or defined(freebsd) or defined(netbsd): cppLinkMath else: cpp
|
||||||
if not myExec(cCompile % [gen.addFileExt(ExeExt), gen]): quit(1)
|
if not myExec(cCompile % [gen.addFileExt(ExeExt), gen]): quit(1)
|
||||||
if not myExec(cppCompile % [pre.addFileExt(ExeExt), pre]): quit(1)
|
if not myExec(cppCompile % [pre.addFileExt(ExeExt), pre]): quit(1)
|
||||||
when defined(windows):
|
when defined(windows):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue