mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-12 20:51:21 +00:00
Automatically detect the host platform in CMakeLists.txt (#929)
Previously, "linux" was hardcoded in the root CMakeLists.txt, so it was impossible to build on anything but Linux, even when specifying WAMR_BUILD_PLATFORM. Signed-off-by: Piotr Sikora <piotrsikora@google.com>
This commit is contained in:
parent
cdf306364e
commit
6b733b8c5b
|
@ -6,7 +6,7 @@ cmake_minimum_required (VERSION 2.8...3.16)
|
||||||
project (iwasm)
|
project (iwasm)
|
||||||
# set (CMAKE_VERBOSE_MAKEFILE 1)
|
# set (CMAKE_VERBOSE_MAKEFILE 1)
|
||||||
|
|
||||||
set (WAMR_BUILD_PLATFORM "linux")
|
string (TOLOWER ${CMAKE_HOST_SYSTEM_NAME} WAMR_BUILD_PLATFORM)
|
||||||
|
|
||||||
# Reset default linker flags
|
# Reset default linker flags
|
||||||
set (CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
|
set (CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user