libc_uvwasi.patch 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. diff --git a/core/iwasm/libraries/libc-uvwasi/libc_uvwasi.cmake b/core/iwasm/libraries/libc-uvwasi/libc_uvwasi.cmake
  2. index 7a3bfbdc..3c8c4b19 100644
  3. --- a/core/iwasm/libraries/libc-uvwasi/libc_uvwasi.cmake
  4. +++ b/core/iwasm/libraries/libc-uvwasi/libc_uvwasi.cmake
  5. @@ -12,48 +12,6 @@ include(FetchContent)
  6. # Point CMake at the custom modules to find libuv and uvwasi
  7. list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
  8. -## libuv
  9. -find_package(LIBUV QUIET)
  10. -if (LIBUV_FOUND)
  11. - include_directories(${LIBUV_INCLUDE_DIR})
  12. -else()
  13. - FetchContent_Declare(
  14. - libuv
  15. - GIT_REPOSITORY https://github.com/libuv/libuv.git
  16. - GIT_TAG ${LIBUV_VERSION}
  17. - )
  18. - FetchContent_GetProperties(libuv)
  19. - if (NOT libuv_POPULATED)
  20. - message("-- Fetching libuv ..")
  21. - FetchContent_Populate(libuv)
  22. - include_directories("${libuv_SOURCE_DIR}/include")
  23. - add_subdirectory(${libuv_SOURCE_DIR} ${libuv_BINARY_DIR} EXCLUDE_FROM_ALL)
  24. - set (LIBUV_LIBRARIES uv_a)
  25. - set_target_properties(uv_a PROPERTIES POSITION_INDEPENDENT_CODE 1)
  26. - endif()
  27. -endif()
  28. -
  29. -## uvwasi
  30. -find_package(UVWASI QUIET)
  31. -if (UVWASI_FOUND)
  32. - include_directories(${UVWASI_INCLUDE_DIR})
  33. -else()
  34. - FetchContent_Declare(
  35. - uvwasi
  36. - GIT_REPOSITORY https://github.com/nodejs/uvwasi.git
  37. - GIT_TAG main
  38. - )
  39. - FetchContent_GetProperties(uvwasi)
  40. - if (NOT uvwasi_POPULATED)
  41. - message("-- Fetching uvwasi ..")
  42. - FetchContent_Populate(uvwasi)
  43. - include_directories("${uvwasi_SOURCE_DIR}/include")
  44. - add_subdirectory(${uvwasi_SOURCE_DIR} ${uvwasi_BINARY_DIR} EXCLUDE_FROM_ALL)
  45. - set (UVWASI_LIBRARIES uvwasi_a)
  46. - set_target_properties(uvwasi_a PROPERTIES POSITION_INDEPENDENT_CODE 1)
  47. - endif()
  48. -endif()
  49. -
  50. set (UV_A_LIBS ${LIBUV_LIBRARIES} ${UVWASI_LIBRARIES})
  51. file (GLOB_RECURSE source_all ${LIBC_WASI_DIR}/*.c)