From 3a96cb168428db98493fbc725c6aecb013942941 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 18 Jul 2024 10:40:34 +0900 Subject: [PATCH] Use the correct compiler-rt 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.