mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
Fix make o/aarch64/ape
on aarch64 (#1064)
This commit is contained in:
parent
636bc4007b
commit
492a8f4f53
1 changed files with 12 additions and 12 deletions
24
Makefile
24
Makefile
|
@ -120,6 +120,18 @@ COMPILE = build/bootstrap/compile.com -V9 -P4096 $(QUOTA)
|
||||||
|
|
||||||
IGNORE := $(shell $(MKDIR) $(TMPDIR))
|
IGNORE := $(shell $(MKDIR) $(TMPDIR))
|
||||||
|
|
||||||
|
# the default build modes is empty string
|
||||||
|
# on x86_64 hosts, MODE= is the same as MODE=x86_64
|
||||||
|
# on aarch64 hosts, MODE= is changed to MODE=aarch64
|
||||||
|
ifeq ($(MODE),)
|
||||||
|
ifeq ($(UNAME_M),arm64)
|
||||||
|
MODE := aarch64
|
||||||
|
endif
|
||||||
|
ifeq ($(UNAME_M),aarch64)
|
||||||
|
MODE := aarch64
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(findstring aarch64,$(MODE)),)
|
ifneq ($(findstring aarch64,$(MODE)),)
|
||||||
ARCH = aarch64
|
ARCH = aarch64
|
||||||
HOSTS ?= pi studio freebsdarm
|
HOSTS ?= pi studio freebsdarm
|
||||||
|
@ -158,18 +170,6 @@ else
|
||||||
ADDR2LINE = $(TOOLCHAIN)addr2line
|
ADDR2LINE = $(TOOLCHAIN)addr2line
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# the default build modes is empty string
|
|
||||||
# on x86_64 hosts, MODE= is the same as MODE=x86_64
|
|
||||||
# on aarch64 hosts, MODE= is changed to MODE=aarch64
|
|
||||||
ifeq ($(MODE),)
|
|
||||||
ifeq ($(UNAME_M),arm64)
|
|
||||||
MODE := aarch64
|
|
||||||
endif
|
|
||||||
ifeq ($(UNAME_M),aarch64)
|
|
||||||
MODE := aarch64
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# primary build rules
|
# primary build rules
|
||||||
all: o
|
all: o
|
||||||
o: o/$(MODE)
|
o: o/$(MODE)
|
||||||
|
|
Loading…
Reference in a new issue