Skip to content

Commit

Permalink
Fix build settings
Browse files Browse the repository at this point in the history
  • Loading branch information
987123879113 committed Jan 8, 2025
1 parent 5fc82fb commit 5683a37
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
5 changes: 5 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,11 @@ endif

ifeq ($(findstring arm,$(UNAME)),arm)
ARCHITECTURE :=
ifneq ($(PLATFORM),arm64)
ifndef FORCE_DRC_C_BACKEND
FORCE_DRC_C_BACKEND := 1
endif
endif
endif

ifeq ($(findstring aarch64,$(UNAME)),aarch64)
Expand Down
5 changes: 2 additions & 3 deletions scripts/genie.lua
Original file line number Diff line number Diff line change
Expand Up @@ -710,12 +710,11 @@ end

if not _OPTIONS["FORCE_DRC_C_BACKEND"] then
if _OPTIONS["BIGENDIAN"]~="1" then
if (_OPTIONS["PLATFORM"]=="arm" or _OPTIONS["PLATFORM"]=="arm64") then
configuration { "x64" }
if (_OPTIONS["PLATFORM"]=="arm64") then
configuration { }
defines {
"NATIVE_DRC=drcbe_arm64",
}
configuration { }
else
configuration { "x64" }
defines {
Expand Down
4 changes: 2 additions & 2 deletions scripts/src/3rdparty.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1959,8 +1959,8 @@ project "asmjit"
end
end

if (_OPTIONS["PLATFORM"]=="arm" or _OPTIONS["PLATFORM"]=="arm64") then
configuration { "x64" }
if (_OPTIONS["PLATFORM"]=="arm64") then
configuration { }
defines {
"ASMJIT_NO_X86",
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/src/cpu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if (CPU_INCLUDE_DRC) then
MAME_DIR .. "src/devices/cpu/drcumlsh.h",
}
if not _OPTIONS["FORCE_DRC_C_BACKEND"] then
if (_OPTIONS["PLATFORM"]=="arm" or _OPTIONS["PLATFORM"]=="arm64") then
if (_OPTIONS["PLATFORM"]=="arm64") then
files {
MAME_DIR .. "src/devices/cpu/drcbearm64.cpp",
MAME_DIR .. "src/devices/cpu/drcbearm64.h",
Expand Down

0 comments on commit 5683a37

Please sign in to comment.