--- t-engine4-src-1.6.7/build/te4core.lua 2019-10-03 09:35:43.000000000 -0400 +++ t-engine4-src-1.6.7_backup/build/te4core.lua 2020-03-31 11:57:55.907000273 -0400 @@ -202,21 +202,8 @@ arch_test = os.capture("gcc -E ../src/luajit2/src/lj_arch.h -dM", true) end - if string.find(arch_test, "LJ_TARGET_X64") then - target_arch = "x64" - elseif string.find(arch_test, "LJ_TARGET_X86") then - target_arch = "x86" - elseif string.find(arch_test, "LJ_TARGET_ARM") then target_arch = "arm" - elseif string.find(arch_test, "LJ_TARGET_PPC") then - target_arch = "ppc" - elseif string.find(arch_test, "LJ_TARGET_PPCSPE") then - target_arch = "ppcspe" - elseif string.find(arch_test, "LJ_TARGET_MIPS") then - target_arch = "mips" - else - error("Unsupported target architecture, use architecture agnostic lua with --lua=default") - end + defines { "LUAJIT_TARGET=LUAJIT_ARCH_" .. target_arch } if string.find(arch_test, "LJ_ARCH_HASFPU 1") then @@ -261,21 +248,8 @@ arch_test = os.capture("gcc -E ../src/luajit2/src/lj_arch.h -dM", true) end - if string.find(arch_test, "LJ_TARGET_X64") then - target_arch = "x64" - elseif string.find(arch_test, "LJ_TARGET_X86") then - target_arch = "x86" - elseif string.find(arch_test, "LJ_TARGET_ARM") then target_arch = "arm" - elseif string.find(arch_test, "LJ_TARGET_PPC") then - target_arch = "ppc" - elseif string.find(arch_test, "LJ_TARGET_PPCSPE") then - target_arch = "ppcspe" - elseif string.find(arch_test, "LJ_TARGET_MIPS") then - target_arch = "mips" - else - error("Unsupported target architecture, use architecture agnostic lua with --lua=default") - end + defines { "LUAJIT_TARGET=LUAJIT_ARCH_" .. target_arch } if string.find(arch_test, "LJ_ARCH_HASFPU 1") then