aboutsummaryrefslogtreecommitdiff
path: root/devel/wasm3/files/patch-CMakeLists.txt
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2021-09-19 04:43:55 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2021-09-19 04:46:36 +0000
commit8f0b24d62bc67d33044aa08d5fc068d28ab5d302 (patch)
tree135dde956e7ca4e107283decb27c67853b490b97 /devel/wasm3/files/patch-CMakeLists.txt
parent29ae563e89f56d06acd73c5a7b09d1c59b9badd4 (diff)
downloadports-8f0b24d62bc67d33044aa08d5fc068d28ab5d302.tar.gz
ports-8f0b24d62bc67d33044aa08d5fc068d28ab5d302.zip
devel/wasm3: add ports.
PR: 258458 Reported by: Martin Filla <freebsd at sysctl.cz>
Diffstat (limited to 'devel/wasm3/files/patch-CMakeLists.txt')
-rw-r--r--devel/wasm3/files/patch-CMakeLists.txt27
1 files changed, 27 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)