2019-06-05 03:12:14 +02:00
|
|
|
if tup.getconfig("NO_GCC") ~= "" then return end
|
|
|
|
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR")
|
|
|
|
tup.include(HELPERDIR .. "/use_gcc.lua")
|
2021-01-09 18:27:55 +01:00
|
|
|
tup.include(HELPERDIR .. "/use_newlib.lua")
|
2019-06-05 03:12:14 +02:00
|
|
|
|
2021-01-09 18:27:55 +01:00
|
|
|
LDFLAGS = LDFLAGS .. " --stack 0x100000"
|
2022-02-05 22:19:41 +01:00
|
|
|
CFLAGS = CFLAGS .. " -fpack-struct=2 -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -D_KOS_ -U_Win32 -U_WIN32 -U__MINGW32__"
|
2019-06-05 03:12:14 +02:00
|
|
|
|
|
|
|
compile_gcc("*.cpp")
|
|
|
|
link_gcc("cmm")
|