aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2013-09-10 20:58:43 +0300
committerJukka Jylänki <jujjyl@gmail.com>2013-09-11 10:33:45 +0300
commit75413a5f7814105aab478238767decbdc7d4e12e (patch)
treee5204a46717aeb9f257c134613f0ee8a52ea2381
parent75d4048a29bc4b8e344b6a9efc87632b5429376d (diff)
Use em_validate_asmjs_after_build() in CMake test.
-rw-r--r--tests/cmake/target_html/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/cmake/target_html/CMakeLists.txt b/tests/cmake/target_html/CMakeLists.txt
index 8b0528eb..b5c69417 100644
--- a/tests/cmake/target_html/CMakeLists.txt
+++ b/tests/cmake/target_html/CMakeLists.txt
@@ -14,3 +14,8 @@ SET(CMAKE_EXECUTABLE_SUFFIX ".html")
add_executable(hello_world_gles ${sourceFiles})
set_target_properties(hello_world_gles PROPERTIES LINK_FLAGS "${linkFlags}")
+
+# Validating asm.js requires SpiderMonkey JS VM - detect its presence via the SPIDERMONKEY environment variable.
+if (DEFINED ENV{SPIDERMONKEY} AND CMAKE_BUILD_TYPE STREQUAL Release)
+ em_validate_asmjs_after_build(hello_world_gles)
+endif()