drop -G flag and add target amd64_apple
apple support is more than assembly syntax in case of arm64 machines, and apple syntax is currently useless in all cases but amd64; rather than having a -G option that only makes sense with amd64, we add a new target amd64_apple
This commit is contained in:
parent
5490268683
commit
8dddb971d9
14 changed files with 143 additions and 123 deletions
6
Makefile
6
Makefile
|
@ -5,7 +5,7 @@ PREFIX = /usr/local
|
|||
BINDIR = $(PREFIX)/bin
|
||||
|
||||
COMMOBJ = main.o util.o parse.o cfg.o mem.o ssa.o alias.o load.o copy.o \
|
||||
fold.o live.o spill.o rega.o gas.o
|
||||
fold.o live.o spill.o rega.o emit.o
|
||||
AMD64OBJ = amd64/targ.o amd64/sysv.o amd64/isel.o amd64/emit.o
|
||||
ARM64OBJ = arm64/targ.o arm64/abi.o arm64/isel.o arm64/emit.o
|
||||
RV64OBJ = rv64/targ.o rv64/abi.o rv64/isel.o rv64/emit.o
|
||||
|
@ -30,11 +30,9 @@ main.o: config.h
|
|||
config.h:
|
||||
@case `uname` in \
|
||||
*Darwin*) \
|
||||
echo "#define Defasm Gasmacho"; \
|
||||
echo "#define Deftgt T_amd64_sysv"; \
|
||||
echo "#define Deftgt T_amd64_apple"; \
|
||||
;; \
|
||||
*) \
|
||||
echo "#define Defasm Gaself"; \
|
||||
case `uname -m` in \
|
||||
*aarch64*) \
|
||||
echo "#define Deftgt T_arm64"; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue