mirror of
https://github.com/holub/mame
synced 2025-04-19 15:11:37 +03:00
Enable building on riscv64 (#3655)
* First attempt at enabling building on riscv64 * PTR64=1 needs to be defined on riscv64 otherwise build fails
This commit is contained in:
parent
e212a85076
commit
fe162f615b
13
makefile
13
makefile
@ -166,6 +166,12 @@ endif
|
||||
ifneq ($(filter powerpc,$(UNAME_P)),)
|
||||
PLATFORM := powerpc
|
||||
endif
|
||||
ifneq ($(filter riscv64%,$(UNAME_M)),)
|
||||
PLATFORM := riscv64
|
||||
endif
|
||||
ifneq ($(filter riscv64%,$(UNAME_P)),)
|
||||
PLATFORM := riscv64
|
||||
endif
|
||||
ifneq ($(filter mips64%,$(UNAME_M)),)
|
||||
ifeq ($(shell getconf LONG_BIT),64)
|
||||
PLATFORM := mips64
|
||||
@ -349,6 +355,13 @@ ifndef NOASM
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(findstring riscv64,$(UNAME)),riscv64)
|
||||
ARCHITECTURE :=
|
||||
ifndef NOASM
|
||||
NOASM := 1
|
||||
endif
|
||||
endif
|
||||
|
||||
# Emscripten
|
||||
ifeq ($(findstring emcc,$(CC)),emcc)
|
||||
TARGETOS := asmjs
|
||||
|
@ -1061,6 +1061,12 @@ if (_OPTIONS["PLATFORM"]=="arm64") then
|
||||
}
|
||||
end
|
||||
|
||||
if (_OPTIONS["PLATFORM"]=="riscv64") then
|
||||
defines {
|
||||
"PTR64=1",
|
||||
}
|
||||
end
|
||||
|
||||
if (_OPTIONS["PLATFORM"]=="mips64") then
|
||||
defines {
|
||||
"PTR64=1",
|
||||
|
Loading…
Reference in New Issue
Block a user