0004-wasm-restore-support-for-some-targets-8401.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From 4a6c5f56cd1a979b91c168fb8e245587c2927aca Mon Sep 17 00:00:00 2001
  2. From: Thomas Devoogdt <thomas@devoogdt.com>
  3. Date: Mon, 22 Jan 2024 19:27:56 +0100
  4. Subject: [PATCH] wasm: restore support for some targets (#8401)
  5. Somehow, support for ARC, MIPS, and XTENSA got dropped by bumping to v1.3.0,
  6. so restore it now. Remark that those targets are mentioned in the section above.
  7. See commit fa6a248746f9f481b5f6aef49716141fa0222650.
  8. Upstream: https://github.com/fluent/fluent-bit/pull/8401
  9. Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
  10. ---
  11. src/wasm/CMakeLists.txt | 6 ++++++
  12. 1 file changed, 6 insertions(+)
  13. diff --git a/src/wasm/CMakeLists.txt b/src/wasm/CMakeLists.txt
  14. index a258dc063..4ea7eba65 100644
  15. --- a/src/wasm/CMakeLists.txt
  16. +++ b/src/wasm/CMakeLists.txt
  17. @@ -51,6 +51,10 @@ elseif (WAMR_BUILD_TARGET MATCHES "AARCH64.*")
  18. elseif (WAMR_BUILD_TARGET MATCHES "ARM.*")
  19. add_definitions(-DBUILD_TARGET_ARM)
  20. add_definitions(-DBUILD_TARGET="${WAMR_BUILD_TARGET}")
  21. +elseif (WAMR_BUILD_TARGET STREQUAL "MIPS")
  22. + add_definitions(-DBUILD_TARGET_MIPS)
  23. +elseif (WAMR_BUILD_TARGET STREQUAL "XTENSA")
  24. + add_definitions(-DBUILD_TARGET_XTENSA)
  25. elseif (WAMR_BUILD_TARGET STREQUAL "RISCV64" OR WAMR_BUILD_TARGET STREQUAL "RISCV64_LP64D")
  26. add_definitions(-DBUILD_TARGET_RISCV64_LP64D)
  27. elseif (WAMR_BUILD_TARGET STREQUAL "RISCV64_LP64")
  28. @@ -59,6 +63,8 @@ elseif (WAMR_BUILD_TARGET STREQUAL "RISCV32" OR WAMR_BUILD_TARGET STREQUAL "RISC
  29. add_definitions(-DBUILD_TARGET_RISCV32_ILP32D)
  30. elseif (WAMR_BUILD_TARGET STREQUAL "RISCV32_ILP32")
  31. add_definitions(-DBUILD_TARGET_RISCV32_ILP32)
  32. +elseif (WAMR_BUILD_TARGET STREQUAL "ARC")
  33. + add_definitions(-DBUILD_TARGET_ARC)
  34. else ()
  35. message (FATAL_ERROR "-- Build target isn't set")
  36. endif ()
  37. --
  38. 2.34.1