mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 06:24:04 +00:00
ci: add ARCH variable to makefile, override it during cross-compilation
This commit is contained in:
parent
611195e4d3
commit
bc12957823
2 changed files with 4 additions and 3 deletions
|
|
@ -9,14 +9,15 @@ ifeq ($(OS),Windows_NT)
|
|||
else
|
||||
UNAME := $(shell uname)
|
||||
CCFLAGS += -fPIC -Os -shared
|
||||
ARCH := $(if $(ARCH),$(ARCH),$(shell uname -m))
|
||||
ifeq ($(UNAME),Darwin)
|
||||
ifeq ($(shell uname -m),arm64)
|
||||
ifeq ($(ARCH),arm64)
|
||||
OUTPUT = lib/arm/noattach.dylib
|
||||
else
|
||||
OUTPUT = lib/noattach.dylib
|
||||
endif
|
||||
else
|
||||
ifeq ($(shell uname -m),aarch64)
|
||||
ifeq ($(ARCH),aarch64)
|
||||
OUTPUT = lib/arm/noattach.so
|
||||
else
|
||||
OUTPUT = lib/noattach.so
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue