cmake: emscripten has libunwind.h, libunwind.a has missing symbols
parent
6e46090a30
commit
55384db8a6
|
@ -1009,7 +1009,6 @@ if(SDL_LIBC)
|
||||||
float.h
|
float.h
|
||||||
iconv.h
|
iconv.h
|
||||||
inttypes.h
|
inttypes.h
|
||||||
libunwind
|
|
||||||
limits.h
|
limits.h
|
||||||
malloc.h
|
malloc.h
|
||||||
math.h
|
math.h
|
||||||
|
@ -1025,6 +1024,9 @@ if(SDL_LIBC)
|
||||||
sys/types.h
|
sys/types.h
|
||||||
wchar.h
|
wchar.h
|
||||||
)
|
)
|
||||||
|
if(NOT EMSCRIPTEN)
|
||||||
|
list(APPEND headers_to_check libunwind.h)
|
||||||
|
endif()
|
||||||
foreach(_HEADER ${headers_to_check})
|
foreach(_HEADER ${headers_to_check})
|
||||||
string(TOUPPER "HAVE_${_HEADER}" _UPPER)
|
string(TOUPPER "HAVE_${_HEADER}" _UPPER)
|
||||||
string(REGEX REPLACE "[./]" "_" _HAVE_H ${_UPPER})
|
string(REGEX REPLACE "[./]" "_" _HAVE_H ${_UPPER})
|
||||||
|
@ -1399,6 +1401,10 @@ elseif(EMSCRIPTEN)
|
||||||
|
|
||||||
CheckPTHREAD()
|
CheckPTHREAD()
|
||||||
|
|
||||||
|
if(HAVE_LIBUNWIND_H)
|
||||||
|
list(APPEND EXTRA_TEST_LIBS unwind)
|
||||||
|
endif()
|
||||||
|
|
||||||
elseif(UNIX AND NOT APPLE AND NOT RISCOS AND NOT HAIKU)
|
elseif(UNIX AND NOT APPLE AND NOT RISCOS AND NOT HAIKU)
|
||||||
if(SDL_AUDIO)
|
if(SDL_AUDIO)
|
||||||
if(SYSV5 OR SOLARIS OR HPUX)
|
if(SYSV5 OR SOLARIS OR HPUX)
|
||||||
|
|
Loading…
Reference in New Issue