diff options
| author | YX Hao <lifenjoiner@163.com> | 2013-09-19 21:50:38 +0800 |
|---|---|---|
| committer | YX Hao <lifenjoiner@163.com> | 2013-09-19 21:50:38 +0800 |
| commit | 642b6d0f50c6b6a842c9239a102fe34d5619e931 (patch) | |
| tree | 60ca755ef6d92565ce21a9d4ca9baf8ebd146a0a /win32/_tcc.bat | |
| parent | 76cb1144ef91924c53c57ea71e6f67ce73ce1cc6 (diff) | |
| download | tinycc-642b6d0f50c6b6a842c9239a102fe34d5619e931.tar.gz tinycc-642b6d0f50c6b6a842c9239a102fe34d5619e931.tar.bz2 | |
Add the possibility to use noname functions by ordinal
tcc.c:
process.h:177:20: note: expected 'char * const*' but argument is of type 'char const*const*'
tccpe.c:
Add the possibility to use noname functions by ordinal.
use def file: "AliasName @n"
build-tcc.bat:
1. Enable 32 bits mode on 64 bits OS.
2. build doc.
_parseLibs.bat:
Convenient to use "*.def + *.c" instead of *.a, just use -l*
_tcc.bat:
a practice of _parseLibs.bat
Signed-off-by: YX Hao <lifenjoiner@163.com>
Diffstat (limited to 'win32/_tcc.bat')
| -rw-r--r-- | win32/_tcc.bat | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/win32/_tcc.bat b/win32/_tcc.bat new file mode 100644 index 0000000..65a7697 --- /dev/null +++ b/win32/_tcc.bat @@ -0,0 +1,30 @@ +@echo off +setlocal enabledelayedexpansion + +pushd %~dp0 + +path %~dp0;%path% + +set EXT=.exe +echo %*|findstr /R /C:"\<-c\>" >nul &&set EXT=.o +echo %*|findstr /R /C:"\<-shared\>" >nul &&set EXT=.dll + +::1st file found must be the main c file to get output file name +set OUTF= +call :FINDFN %* + +if "%OUTF%"=="" goto :EXIT + +call _parseLibs -vv -o "%OUTF%" %* + +:EXIT +popd +pause +exit /b + +:FINDFN +for %%i in (%*) do ( + if exist %%i set OUTF=%%~dpni%EXT%&goto :ENDFDF +) +:ENDFDF +exit /b |
