Don't try to use thin LTO with Emscripten since it isn't supported

This commit is contained in:
刘皓 2025-08-01 15:14:13 -04:00
parent d31df2dead
commit bb7ad15bb6
No known key found for this signature in database
GPG key ID: 7901753DB465B711

View file

@ -163,8 +163,8 @@ else ifeq ($(platform),emscripten)
MKXPZ_CPU = wasm32
MKXPZ_ENDIAN = little
MKXPZ_CMAKE_TOOLCHAIN_FILE = $(shell em-config EMSCRIPTEN_ROOT)/cmake/Modules/Platform/Emscripten.cmake
# The build times out with full LTO
MKXPZ_LTO_MODE = thin
# The build times out with LTO enabled
MKXPZ_LTO = false
else
$(error unknown platform '$(platform)')
endif