Skip to content

Commit 2ca8f1c

Browse files
WenLY1xiaoxiang781216
authored andcommitted
wasm toolchain: add --enable-gc to wamrc if GC enabled
Signed-off-by: wenlingyun1 <[email protected]>
1 parent 003044a commit 2ca8f1c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

interpreters/wamr/Toolchain.defs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ else
6565
WABITYPE = $(LLVM_ABITYPE)
6666
endif
6767

68+
ifeq ($(CONFIG_INTERPRETERS_WAMR_GC),y)
69+
RCFLAGS += --enable-gc
70+
endif
71+
6872
RCFLAGS += --target=$(WTARGET) --target-abi=$(WABITYPE) --cpu=$(WCPU)
6973

7074
define WAMR_AOT_COMPILE

0 commit comments

Comments
 (0)