Commit 7eb3e6e0 by Ryan Harrison

Make non-emscripten flags platform agnostic.

parent c1063cd5
...@@ -120,8 +120,13 @@ if(ENABLE_GLSLANG_WEB) ...@@ -120,8 +120,13 @@ if(ENABLE_GLSLANG_WEB)
if(ENABLE_EMSCRIPTEN_SINGLE_FILE) if(ENABLE_EMSCRIPTEN_SINGLE_FILE)
add_link_options("SHELL: -s SINGLE_FILE=1") add_link_options("SHELL: -s SINGLE_FILE=1")
endif(ENABLE_EMSCRIPTEN_SINGLE_FILE) endif(ENABLE_EMSCRIPTEN_SINGLE_FILE)
else(EMSCRIPTEN) else()
add_compile_options(-Os -g -flto -fno-exceptions) if(MSVC)
add_compile_options(/Os /GR-)
else()
add_compile_options(-Os -fno-exceptions)
add_link_options(-Os)
endif()
endif(EMSCRIPTEN) endif(EMSCRIPTEN)
endif(ENABLE_GLSLANG_WEB) endif(ENABLE_GLSLANG_WEB)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment