summaryrefslogtreecommitdiffstats
path: root/fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/iwasm/compilation/iwasm_compl.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/iwasm/compilation/iwasm_compl.cmake')
-rw-r--r--fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/iwasm/compilation/iwasm_compl.cmake26
1 files changed, 26 insertions, 0 deletions
diff --git a/fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/iwasm/compilation/iwasm_compl.cmake b/fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/iwasm/compilation/iwasm_compl.cmake
new file mode 100644
index 000000000..4ec460304
--- /dev/null
+++ b/fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/iwasm/compilation/iwasm_compl.cmake
@@ -0,0 +1,26 @@
+set (IWASM_COMPL_DIR ${CMAKE_CURRENT_LIST_DIR})
+
+include_directories(${IWASM_COMPL_DIR})
+
+if (WAMR_BUILD_DEBUG_AOT EQUAL 1)
+ file (GLOB_RECURSE source_all
+ ${IWASM_COMPL_DIR}/*.c
+ ${IWASM_COMPL_DIR}/*.cpp)
+else()
+ file (GLOB source_all
+ ${IWASM_COMPL_DIR}/simd/*.c
+ ${IWASM_COMPL_DIR}/simd/*.cpp
+ ${IWASM_COMPL_DIR}/*.c
+ ${IWASM_COMPL_DIR}/*.cpp)
+endif()
+
+set (IWASM_COMPL_SOURCE ${source_all})
+
+# Disalbe rtti to works with LLVM
+
+if (MSVC)
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /GR-")
+else()
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti")
+endif()
+