emscripten: enable GNU extensions

They're needed for some features like EM_ASM
This commit is contained in:
Sebastian Krzyszkowiak 2019-12-10 03:21:22 +01:00
parent 2adbb131e6
commit cddb35dd95
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -260,6 +260,9 @@ if (NOT LIBSUPERDERPY_CONFIG_INCLUDED)
set(CMAKE_EXECUTABLE_SUFFIX ".bc")
set(CMAKE_SHARED_LIBRARY_SUFFIX ".so")
# GNU extensions are needed for things like EM_ASM
set(CMAKE_C_EXTENSIONS ON)
set(CMAKE_CXX_EXTENSIONS ON)
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Oz")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Oz")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -Oz")