Make non-emscripten flags platform agnostic.
This commit is contained in:
parent
c1063cd5e2
commit
7eb3e6e07a
@ -120,8 +120,13 @@ if(ENABLE_GLSLANG_WEB)
|
||||
if(ENABLE_EMSCRIPTEN_SINGLE_FILE)
|
||||
add_link_options("SHELL: -s SINGLE_FILE=1")
|
||||
endif(ENABLE_EMSCRIPTEN_SINGLE_FILE)
|
||||
else(EMSCRIPTEN)
|
||||
add_compile_options(-Os -g -flto -fno-exceptions)
|
||||
else()
|
||||
if(MSVC)
|
||||
add_compile_options(/Os /GR-)
|
||||
else()
|
||||
add_compile_options(-Os -fno-exceptions)
|
||||
add_link_options(-Os)
|
||||
endif()
|
||||
endif(EMSCRIPTEN)
|
||||
endif(ENABLE_GLSLANG_WEB)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user