Skip to content

Commit 0392bb7

Browse files
committed
Fail on missing symbols at link time.
1 parent 9c13f26 commit 0392bb7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ elseif(EMSCRIPTEN)
212212
# ...and at link time:
213213
add_link_options(-fexceptions)
214214

215+
# Tell the Emscripten linker that undefined symbols are a hard fail:
216+
add_link_options(-sERROR_ON_UNDEFINED_SYMBOLS=1)
217+
215218
# FFTW support:
216219
add_compile_definitions(
217220
HAVE_FFTW3=1

0 commit comments

Comments
 (0)