You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- The MSVC bug from the parent commit wasn't a macro, apparently
- Forgot to commit src/port/emscripten.cpp
- Emscripten doesn't support LTO very well, disable it for now
Copy file name to clipboardExpand all lines: CMakeLists.txt
+7-1
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,13 @@ include(ExternalProject)
64
64
include(CheckCXXCompilerFlag)
65
65
include(CheckSymbolExists)
66
66
67
-
option(SUPERTUX_IPO "Use interprocedural optimisation (Takes more RAM at compilation, gives smaller and faster builds)"ON)
67
+
if(EMSCRIPTEN)
68
+
# FIXME: As of writing, Emscripten fails with "wasm-ld: error: /path/to/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/thinlto/libc.a(fileno.o): attempt to add bitcode file after LTO (fileno)"
69
+
# Seems to be a known issue: https://github.com/emscripten-core/emscripten/issues/20275
70
+
option(SUPERTUX_IPO "Use interprocedural optimisation (Takes more RAM at compilation, gives smaller and faster builds)"OFF)
71
+
else()
72
+
option(SUPERTUX_IPO "Use interprocedural optimisation (Takes more RAM at compilation, gives smaller and faster builds)"ON)
0 commit comments