fixes #582
This commit is contained in:
parent
0464a1071e
commit
8087f51d14
8 changed files with 48 additions and 30 deletions
|
|
@ -1,11 +1,11 @@
|
|||
#! stdtmpl(subsChar='?') | standard
|
||||
#proc GenerateBuildBatchScript(c: TConfigData, target: TTarget): string =
|
||||
#proc GenerateBuildBatchScript(c: TConfigData, winIndex, cpuIndex: int): string =
|
||||
# result = "@echo off\nREM Generated by niminst\n"
|
||||
SET CC=gcc
|
||||
SET LINKER=gcc
|
||||
SET COMP_FLAGS=?{c.ccompiler.flags}
|
||||
SET LINK_FLAGS=?{c.linker.flags}
|
||||
SET BIN_DIR=?{firstBinPath(c)}
|
||||
SET BIN_DIR=?{firstBinPath(c).slashify}
|
||||
|
||||
if EXIST ..\koch.nim SET BIN_DIR=..\bin
|
||||
|
||||
|
|
@ -15,8 +15,8 @@ REM call the compiler:
|
|||
|
||||
# block win32:
|
||||
# var linkCmd = ""
|
||||
# for ff in items(c.cfiles[1][ord(target)]):
|
||||
# let f = ff.replace('/', '\\')
|
||||
# for ff in items(c.cfiles[winIndex][cpuIndex]):
|
||||
# let f = ff.slashify
|
||||
ECHO %CC% %COMP_FLAGS% -Isrc -c ?{f} -o ?{changeFileExt(f, "o")}
|
||||
%CC% %COMP_FLAGS% -Isrc -c ?{f} -o ?{changeFileExt(f, "o")}
|
||||
# linkCmd.add(" " & changeFileExt(f, "o"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue