mirror of
https://github.com/holub/mame
synced 2025-10-04 16:34:53 +03:00
Support for aarch64 (nw)
This commit is contained in:
parent
a880f01b17
commit
e6142ef558
13
makefile
13
makefile
@ -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
|
||||
|
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user