diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-09-11 12:50:23 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-11 12:50:23 -0700 |
commit | 83ec41b14fa6de59a4dda19cc200546367c1d124 (patch) | |
tree | 30cbe128e1a1f6f0a9ac1fe97af6de062643d878 /tests | |
parent | 37aea4b81eaca50d8754c3de015e64bd665e8a64 (diff) | |
parent | 9b85e4b330eea119ce445f5a0c1fdafa7095e9f9 (diff) |
Merge pull request #1608 from juj/validate_asmjs
Validate asmjs
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cmake/target_html/CMakeLists.txt | 5 |
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() |