comparison Resources/CMake/Compiler.cmake @ 2781:13038d638097

primitives for android ndk
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 20 Jul 2018 11:01:33 +0200
parents 04873915beaf
children 077e1101d908
comparison
equal deleted inserted replaced
2780:d4e81e0a8324 2781:13038d638097
178 # zero (and similar conditions like integer overflows) are 178 # zero (and similar conditions like integer overflows) are
179 # encountered: The "clamp" mode avoids throwing errors, as they 179 # encountered: The "clamp" mode avoids throwing errors, as they
180 # cannot be properly catched by "try {} catch (...)" constructions. 180 # cannot be properly catched by "try {} catch (...)" constructions.
181 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s EXTRA_EXPORTED_RUNTIME_METHODS='[\"ccall\", \"cwrap\"]' -s BINARYEN_TRAP_MODE='\"clamp\"'") 181 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s EXTRA_EXPORTED_RUNTIME_METHODS='[\"ccall\", \"cwrap\"]' -s BINARYEN_TRAP_MODE='\"clamp\"'")
182 182
183 elseif (CMAKE_SYSTEM_NAME STREQUAL "Android")
184
183 else() 185 else()
186 message("Unknown target platform: ${CMAKE_SYSTEM_NAME}")
184 message(FATAL_ERROR "Support your platform here") 187 message(FATAL_ERROR "Support your platform here")
185 endif() 188 endif()
186 189
187 190
188 if (DEFINED ENABLE_PROFILING AND ENABLE_PROFILING) 191 if (DEFINED ENABLE_PROFILING AND ENABLE_PROFILING)