aboutsummaryrefslogtreecommitdiff
path: root/devel/wasm3/files
diff options
context:
space:
mode:
Diffstat (limited to 'devel/wasm3/files')
-rw-r--r--devel/wasm3/files/patch-CMakeLists.txt27
-rw-r--r--devel/wasm3/files/patch-__deps_uvwasi-src_CMakeLists.txt45
2 files changed, 72 insertions, 0 deletions
diff --git a/devel/wasm3/files/patch-CMakeLists.txt b/devel/wasm3/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..3b586e383763
--- /dev/null
+++ b/devel/wasm3/files/patch-CMakeLists.txt
@@ -0,0 +1,27 @@
+--- CMakeLists.txt.orig 2021-06-02 10:40:14 UTC
++++ CMakeLists.txt
+@@ -188,21 +188,10 @@ if(BUILD_WASI MATCHES "simple")
+ elseif(BUILD_WASI MATCHES "metawasi")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Dd_m3HasMetaWASI")
+ elseif(BUILD_WASI MATCHES "uvwasi")
+- include(FetchContent)
+- FetchContent_Declare(
+- uvwasi
+- GIT_REPOSITORY https://github.com/vshymanskyy/uvwasi.git
+- GIT_TAG b063d686848c32a26119513056874f051c74258a
+- )
+-
+- FetchContent_GetProperties(uvwasi)
+- if(NOT uvwasi_POPULATED)
+- FetchContent_Populate(uvwasi)
+- include_directories("${uvwasi_SOURCE_DIR}/include")
+- add_subdirectory(${uvwasi_SOURCE_DIR} ${uvwasi_BINARY_DIR} EXCLUDE_FROM_ALL)
+- endif()
++ add_subdirectory("_deps/uvwasi-src")
++ include_directories("_deps/uvwasi-src/include")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Dd_m3HasUVWASI")
+- target_link_libraries(${OUT_FILE} uvwasi_a uv_a)
++ target_link_libraries(${OUT_FILE} uvwasi_a)
+ endif()
+
+ check_ipo_supported(RESULT result)
diff --git a/devel/wasm3/files/patch-__deps_uvwasi-src_CMakeLists.txt b/devel/wasm3/files/patch-__deps_uvwasi-src_CMakeLists.txt
new file mode 100644
index 000000000000..f97829d48652
--- /dev/null
+++ b/devel/wasm3/files/patch-__deps_uvwasi-src_CMakeLists.txt
@@ -0,0 +1,45 @@
+--- _deps/uvwasi-src/CMakeLists.txt.orig 2021-03-20 19:00:07 UTC
++++ _deps/uvwasi-src/CMakeLists.txt
+@@ -25,19 +25,19 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
+ list(APPEND uvwasi_defines _GNU_SOURCE _POSIX_C_SOURCE=200112)
+ endif()
+
+-include(FetchContent)
++#include(FetchContent)
+ ## https://libuv.org
+-FetchContent_Declare(
+- libuv
+- GIT_REPOSITORY https://github.com/libuv/libuv.git
+- GIT_TAG ${LIBUV_VERSION})
++#FetchContent_Declare(
++# libuv
++# GIT_REPOSITORY https://github.com/libuv/libuv.git
++# GIT_TAG ${LIBUV_VERSION})
+
+-FetchContent_GetProperties(libuv)
+-if(NOT libuv_POPULATED)
+- FetchContent_Populate(libuv)
+- include_directories("${libuv_SOURCE_DIR}/include")
+- add_subdirectory(${libuv_SOURCE_DIR} ${libuv_BINARY_DIR} EXCLUDE_FROM_ALL)
+-endif()
++#FetchContent_GetProperties(libuv)
++#if(NOT libuv_POPULATED)
++# FetchContent_Populate(libuv)
++# include_directories("${libuv_SOURCE_DIR}/include")
++# add_subdirectory(${libuv_SOURCE_DIR} ${libuv_BINARY_DIR} EXCLUDE_FROM_ALL)
++#endif()
+
+ ## uvwasi source code files.
+ set(uvwasi_sources
+@@ -87,9 +87,9 @@ target_compile_definitions(uvwasi_a PRIVATE ${uvwasi_d
+ target_compile_options(uvwasi_a PRIVATE ${uvwasi_cflags})
+ target_include_directories(uvwasi_a PRIVATE ${PROJECT_SOURCE_DIR}/include)
+ if(CODE_COVERAGE)
+- target_link_libraries(uvwasi_a PUBLIC uv_a coverage_config)
++ target_link_libraries(uvwasi_a PUBLIC uv coverage_config)
+ else()
+- target_link_libraries(uvwasi_a PRIVATE uv_a)
++ target_link_libraries(uvwasi_a PRIVATE uv)
+ endif()
+
+