Revert "Updated LuaJIT build command from AuahDark: pass in debug for debug builds, and amalg for release builds."

This reverts commit 915d5a1fb9.
This commit is contained in:
Miku AuahDark
2023-01-14 15:11:43 +08:00
parent 2bd51bce60
commit 2ccf2ae9a4
+2 -3
View File
@@ -316,8 +316,7 @@ if(MSVC AND NOT MEGA_ARM64)
call \"${MEGA_MSVC_VCVARSALL_BAT}\" ${MEGA_MSVC_VCVARSALL_BAT_ARG}
)
cd \"${MEGA_LUAJIT_SOURCE_DIR}/src\"
if %1 == \"\" shift /1
msvcbuild.bat %1 %2
msvcbuild.bat
")
file(WRITE ${MEGA_LUAJIT_SOURCE_DIR}/megabuild.bat ${MEGA_LUAJIT_BUILD_BAT})
@@ -326,7 +325,7 @@ if(MSVC AND NOT MEGA_ARM64)
SOURCE_DIR ${MEGA_LUAJIT_SOURCE_DIR}
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND ""
BUILD_COMMAND "${MEGA_LUAJIT_SOURCE_DIR}/megabuild.bat" $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:debug> $<$<NOT:$<CONFIG:Debug>>:amalg>
BUILD_COMMAND "${MEGA_LUAJIT_SOURCE_DIR}/megabuild.bat"
INSTALL_COMMAND cmake -E make_directory ${CMAKE_BINARY_DIR}/bin
COMMAND cmake -E copy ${MEGA_LUAJIT_SOURCE_DIR}/src/lua51.dll ${CMAKE_BINARY_DIR}/bin
COMMAND cmake -E copy ${MEGA_LUAJIT_SOURCE_DIR}/src/lua51.lib ${CMAKE_BINARY_DIR}/bin)