diff options
author | Phill <ph1ll@users.noreply.github.com> | 2017-10-31 11:18:07 +0300 |
---|---|---|
committer | Morgan Brown <morganbr@users.noreply.github.com> | 2017-10-31 11:18:07 +0300 |
commit | 15ce20d82918bb04009a30e3dbcebce85b1dd80e (patch) | |
tree | 513539fe0a290019ceb06b04c413a37402d26e10 /src/Native/Runtime/CMakeLists.txt | |
parent | 7d205be9ed4705e6564f13478aeefa913a82137e (diff) |
Build native code for WebAssembly target (#4624)
Add support to cmake files for wasm build
Diffstat (limited to 'src/Native/Runtime/CMakeLists.txt')
-rw-r--r-- | src/Native/Runtime/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Native/Runtime/CMakeLists.txt b/src/Native/Runtime/CMakeLists.txt index 24536e364..c80fd7c1e 100644 --- a/src/Native/Runtime/CMakeLists.txt +++ b/src/Native/Runtime/CMakeLists.txt @@ -133,6 +133,8 @@ else() set(ARCH_SOURCES_DIR arm) elseif(CLR_CMAKE_PLATFORM_ARCH_I386) set(ARCH_SOURCES_DIR i386) + elseif(CLR_CMAKE_PLATFORM_ARCH_WASM) + set(ARCH_SOURCES_DIR wasm) endif() list(APPEND RUNTIME_SOURCES_ARCH_ASM @@ -212,5 +214,8 @@ convert_to_absolute_path(PORTABLE_RUNTIME_SOURCES ${PORTABLE_RUNTIME_SOURCES}) convert_to_absolute_path(RUNTIME_SOURCES_ARCH_ASM ${RUNTIME_SOURCES_ARCH_ASM}) -add_subdirectory(Full) +if(NOT CLR_CMAKE_PLATFORM_WASM) + add_subdirectory(Full) +endif(NOT CLR_CMAKE_PLATFORM_WASM) + add_subdirectory(Portable) |