From b9ef79d7dbd47c6c5bafdae760823467c2f60b70 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 25 Jul 2024 03:14:31 +0900 Subject: [PATCH] Use the correct compiler-rt (#517) eg. when a user specifies non-default -resource-dir. cf. https://github.com/WebAssembly/wasi-sdk/pull/446 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0459362e..542b43eb 100644 --- a/Makefile +++ b/Makefile @@ -66,7 +66,7 @@ ifeq ($(WASI_SNAPSHOT), p2) TARGET_TRIPLE = wasm32-wasip2 endif -BUILTINS_LIB ?= $(shell ${CC} --print-libgcc-file-name) +BUILTINS_LIB ?= $(shell ${CC} ${CFLAGS} --print-libgcc-file-name) # These variables describe the locations of various files and directories in # the source tree.