mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-15 05:20:06 +08:00
build-libtcc1-by-tcc: use a new tcc to compile a libtcc1.c and alloca.S
This will allow to build a libtcc1.a even if a bootstrap compiler don't support a target arch. There was alrady this feature but only for OS Darwin.
This commit is contained in:
parent
7ed4341538
commit
1cbb4d322b
@ -15,19 +15,12 @@ ifndef TARGET # native library
|
||||
else
|
||||
ifeq ($(ARCH),i386)
|
||||
TARGET = i386
|
||||
ifneq ($(TARGETOS),Darwin)
|
||||
XCC = $(CC)
|
||||
endif
|
||||
else
|
||||
ifeq ($(ARCH),x86-64)
|
||||
TARGET = x86_64
|
||||
ifneq ($(TARGETOS),Darwin)
|
||||
XCC = $(CC)
|
||||
endif
|
||||
else
|
||||
ifeq ($(ARCH),arm)
|
||||
TARGET = arm
|
||||
XCC = $(CC)
|
||||
else
|
||||
ifeq ($(ARCH),arm64)
|
||||
TARGET = arm64
|
||||
|
Loading…
Reference in New Issue
Block a user