2017-01-19 03:34:41 +01:00
|
|
|
if tup.getconfig("NO_GCC") ~= "" or tup.getconfig("NO_FASM") ~= "" then return end
|
|
|
|
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../.." or tup.getconfig("HELPERDIR")
|
|
|
|
tup.include(HELPERDIR .. "/use_gcc.lua")
|
|
|
|
tup.include(HELPERDIR .. "/use_newlib.lua")
|
|
|
|
CFLAGS = "-U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32"
|
|
|
|
compile_gcc{"tcc.c"}
|
|
|
|
compile_gcc{"libtcc.c"}
|
|
|
|
link_gcc("tcc")
|
2021-08-25 20:30:26 +02:00
|
|
|
|
2022-01-01 17:16:17 +01:00
|
|
|
--CFLAGS = " -static -m32 -DTCC_TARGET_MEOS_LINUX "
|
|
|
|
--tup.rule({"tcc.c", "libtcc.c"}, "gcc" .. CFLAGS .. "%f -o %o" , "kos32-tcc")
|
|
|
|
--tup.rule({"tcc.c", "libtcc.c"}, "i686-w64-mingw32-gcc" .. CFLAGS .. "%f -o %o" , "kos32-tcc.exe")
|