Skip to content

Commit 6b78e56

Browse files
author
grischka
committed
div fixes
- Makefile: don't produce unknown targets - libtcc.c: tcc_set_linker(): improve parser - tcc.h: tcc_internal_error(): don't record __FILE__ (for privacy reasons) - tccgen.c: - reject pointer + float operation - use 'int level' for builtin_frame/return_address - save_regs(): remove VT_ARRAY (confuses riscv64-gen) - tccpe.c: store just basename of loaded dlls (rather than full path) - tccpp.c: remove unused TAL defines - *-link.c: add missing ST_FUNC - i386-gen.c: fix thiscall - riscv64-asm.c/arm-asm.c: stay simple C89 - avoid .designators, decl after statement - avoid multiple instances of same static const objects - use skip() instead of next() & expect() - use cstr_printf() instead of snprintf() & cstr_cat() - tcc_error(), expect(): never return
1 parent 3b943be commit 6b78e56

20 files changed

+227
-508
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ DEFINES += $(if $(ELF-$T),-DCONFIG_TCC_ELFINTERP="\"$(ELF-$T)\"")
198198
DEFINES += $(DEF-$(or $(findstring win,$T),unx))
199199

200200
ifneq ($(X),)
201+
$(if $(DEF-$T),,$(error error: unknown target: '$T'))
201202
DEF-all += -DCONFIG_TCC_CROSSPREFIX="\"$X\""
202203
ifneq ($(CONFIG_WIN32),yes)
203204
DEF-win += -DCONFIG_TCCDIR="\"$(tccdir)/win32\""

0 commit comments

Comments
 (0)