diff options
| author | 2025-04-20 02:36:58 +1000 | |
|---|---|---|
| committer | 2025-04-20 02:36:58 +1000 | |
| commit | 8c28d3ff7eb420452a8f3499d77b3957ca7edf58 (patch) | |
| tree | ddd98c2e08b9be0146a0f80d0d24bc4130acd6ea /scripts/src/cpu.lua | |
| parent | b1d2a52ddd96375d0608fee4d666998d621679c6 (diff) | |
Cleaned up build scripts and compiling documentation:
* Made it a bit easier to cross-compile for x86-64 or i686 on an AArch64
Windows system.
* Choose the default native recompiler back-end based on predefined
macros rather than requiring the build scripts to set it.
* Don't require every target without a native recompiler to declare
this.
* Got rid of the code that was supposed to set -m32 or -m64 when
building GENie (it didn't work - it tried to use ARCHITECTURE before
setting it).
* Avoid relying on the unreliable PROCESSOR_ARCHITECTURE environment
variable.
* Got rid of stuff for versions of Xcode that are definitely no longer
supported.
* Got rid of workarounds for very old Linux distros.
* Use newer makefile syntax for if/else/if structures, comment some else
and endif statements for clarity.
Diffstat (limited to 'scripts/src/cpu.lua')
| -rw-r--r-- | scripts/src/cpu.lua | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/scripts/src/cpu.lua b/scripts/src/cpu.lua index 37bee222d71..6e7a71ba0d5 100644 --- a/scripts/src/cpu.lua +++ b/scripts/src/cpu.lua @@ -41,7 +41,7 @@ if (CPU_INCLUDE_DRC) then MAME_DIR .. "src/devices/cpu/x86log.h", MAME_DIR .. "src/devices/cpu/drcumlsh.h", } - if not _OPTIONS["FORCE_DRC_C_BACKEND"] then + if (not _OPTIONS["FORCE_DRC_C_BACKEND"]) and ((_OPTIONS["PLATFORM"] == "x86") or (_OPTIONS["PLATFORM"] == "arm64")) then files { MAME_DIR .. "src/devices/cpu/drcbearm64.cpp", MAME_DIR .. "src/devices/cpu/drcbearm64.h", @@ -51,14 +51,6 @@ if (CPU_INCLUDE_DRC) then MAME_DIR .. "src/devices/cpu/drcbex86.h", } end - - if _OPTIONS["targetos"]=="macosx" and _OPTIONS["gcc"]~=nil then - if string.find(_OPTIONS["gcc"], "clang") and (str_to_version(_OPTIONS["gcc_version"]) < 80000) then - defines { - "TARGET_OS_OSX=1", - } - end - end end -------------------------------------------------- |
