summary refs log tree commit diff stats
path: root/tests/dir with space
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-05-28 11:24:29 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-05-28 11:24:29 +0200
commit3221ac094398492e09ea618638204793b0990eca (patch)
tree49be51c0fef32460ef4cb022b26d1332d865f3d7 /tests/dir with space
parent7e8eadb6ba9c94ea429ee7178e8cc8fbcbf558ea (diff)
downloadNim-3221ac094398492e09ea618638204793b0990eca.tar.gz
hotfix for --gc:regions
Diffstat (limited to 'tests/dir with space')
0 files changed, 0 insertions, 0 deletions
lt;dominikpicheta@googlemail.com> 2013-08-04 19:41:20 +0100 committer Dominik Picheta <dominikpicheta@googlemail.com> 2013-08-04 19:41:20 +0100 Modified the behaviour of the build scripts to accommodate new C sources' href='/ahoang/Nim/commit/tools/niminst/buildbat.tmpl?h=devel&id=201e4d283511af57c6e20bf3a77405c99ebbe305'>201e4d283 ^
040c57f0a ^


8f66c99f0 ^

8087f51d1 ^
eaf4da041 ^
429d337ef ^
80d6b0e9c ^
8f66c99f0 ^
1b4dd6f61 ^
8f66c99f0 ^
040c57f0a ^
b99333f53 ^

040c57f0a ^
8f66c99f0 ^

1b4dd6f61 ^










1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
                                   
                                                                                
                                                   

              

                                   
                                    



                                          


                      

                     
                                                   
                       
                                                                   
                                                                   
                                               
                          
            
 

                                                                              
 

            










                                                                                 
#? stdtmpl(subsChar='?') | standard
#proc generateBuildBatchScript(c: ConfigData, 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).toWin}

if EXIST ..\koch.nim SET BIN_DIR=..\bin

if NOT EXIST %BIN_DIR%\nul mkdir %BIN_DIR%

REM call the compiler:

#  block win32:
#    var linkCmd = ""
#    for ff in items(c.cfiles[winIndex][cpuIndex]):
#      let f = ff.toWin
ECHO %CC% %COMP_FLAGS% -Ic_code -c ?{f} -o ?{changeFileExt(f, "o")}
CALL %CC% %COMP_FLAGS% -Ic_code -c ?{f} -o ?{changeFileExt(f, "o")}
#      linkCmd.add(" " & changeFileExt(f, "o"))
IF ERRORLEVEL 1 (GOTO:END)
#    end for

ECHO %LINKER% -o ?{"%BIN_DIR%"\toLowerAscii(c.name)}.exe ?linkCmd %LINK_FLAGS%
CALL %LINKER% -o ?{"%BIN_DIR%"\toLowerAscii(c.name)}.exe ?linkCmd %LINK_FLAGS%

#  end block

:END
IF ERRORLEVEL 1 (
    ECHO FAILURE
    ECHO.
    ECHO CSource compilation failed. Please check that the gcc compiler is in
    ECHO the PATH environment variable, and that you are calling the batch script
    ECHO that matches the target architecture of the compiler.
) ELSE (
    ECHO SUCCESS
)
exit /b %ERRORLEVEL%