Support for aarch64 (nw)

This commit is contained in:
Miodrag Milanovic 2016-03-11 13:09:47 +01:00
parent a880f01b17
commit e6142ef558
2 changed files with 22 additions and 0 deletions

View File

@ -136,6 +136,12 @@ endif
ifneq ($(filter arm%,$(UNAME_P)),)
PLATFORM := arm
endif
ifneq ($(filter aarch64%,$(UNAME_M)),)
PLATFORM := arm64
endif
ifneq ($(filter aarch64%,$(UNAME_P)),)
PLATFORM := arm64
endif
ifneq ($(filter powerpc,$(UNAME_P)),)
PLATFORM := powerpc
endif
@ -279,6 +285,13 @@ ifndef NOASM
endif
endif
ifeq ($(findstring aarch64,$(UNAME)),aarch64)
ARCHITECTURE :=
ifndef NOASM
NOASM := 1
endif
endif
# Emscripten
ifeq ($(findstring emcc,$(CC)),emcc)
TARGETOS := asmjs

View File

@ -1025,6 +1025,15 @@ if (_OPTIONS["PLATFORM"]=="arm") then
}
end
if (_OPTIONS["PLATFORM"]=="arm64") then
buildoptions {
"-Wno-cast-align",
}
defines {
"PTR64=1",
}
end
local subdir
if (_OPTIONS["target"] == _OPTIONS["subtarget"]) then
subdir = _OPTIONS["osd"] .. "/" .. _OPTIONS["target"]