Hello list, 2015-03-09 10:17 GMT+08:00 Roy Tam <[email protected]>: > Hello list, > >> The compiled tcc binary is not able to compile itself, after git pull today: >> tcc -o i386-tcc.exe tcc.c -DONE_SOURCE -DTCC_TARGET_I386 -I. -O2 >> tcc: error: file 'crt1.o' not found >> tcc: error: file 'crti.o' not found >> In file included from tcc.c:22: >> In file included from libtcc.c:21: >> In file included from tcc.h:41: >> d:/tinycc/win32/include/time.h:12: error: #error Only Win32 target is >> supported! >> make: *** [i386-tcc.exe] Error 1 > > I found out that git 76af94862352a3f1d26249d9ea6f795d107c1d7f breaks > building in MSYS, and TCC_TARGET_PE is not defined when building > *tcc.exe! > > @seyko please fix it! >
for now I can provide a hack to workaround it: diff --git a/Makefile b/Makefile index 16b806c..a8572a8 100644 --- a/Makefile +++ b/Makefile @@ -156,6 +156,10 @@ PROGS+=$(PROGS_CROSS) TCCLIBS+=$(LIBTCC1_CROSS) endif +ifdef CONFIG_WIN32 +CPPFLAGS+= -DTCC_TARGET_PE +endif + all: $(PROGS) $(TCCLIBS) $(TCCDOCS) # Host Tiny C Compiler Regards, Roy _______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
