Skip to content

Commit 2d404f7

Browse files
committed
feat: add check for unsupported SHARED_HEAP + FAST_JIT configuration and update documentation warning
1 parent 2d61745 commit 2d404f7

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

build-scripts/unsupported_combination.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,7 @@ if(WAMR_BUILD_SIMD EQUAL 1)
7272
check_classic_interp_error("Unsupported build configuration: SIMD + CLASSIC_INTERP")
7373
check_fast_jit_error("Unsupported build configuration: SIMD + FAST_JIT")
7474
endif()
75+
76+
if(WAMR_BUILD_SHARED_HEAP EQUAL 1)
77+
check_fast_jit_error("Unsupported build configuration: SHARED_HEAP + FAST_JIT")
78+
endif()

doc/build_wamr.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,9 @@ cmake -DWAMR_BUILD_PLATFORM=linux -DWAMR_BUILD_TARGET=ARM
476476
> void shared_heap_free(void *ptr);
477477
> ```
478478
479+
> [!WARNING]
480+
> Currently, the shared-heap feature is not supported in fast-jit mode.
481+
479482
### **Shrunk the memory usage**
480483
481484
- **WAMR_BUILD_SHRUNK_MEMORY**=1/0, default to enable if not set

0 commit comments

Comments
 (0)