Skip to content

Commit b9ef79d

Browse files
authored
Use the correct compiler-rt (#517)
eg. when a user specifies non-default -resource-dir. cf. WebAssembly/wasi-sdk#446
1 parent b9e15a8 commit b9ef79d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ ifeq ($(WASI_SNAPSHOT), p2)
6666
TARGET_TRIPLE = wasm32-wasip2
6767
endif
6868

69-
BUILTINS_LIB ?= $(shell ${CC} --print-libgcc-file-name)
69+
BUILTINS_LIB ?= $(shell ${CC} ${CFLAGS} --print-libgcc-file-name)
7070

7171
# These variables describe the locations of various files and directories in
7272
# the source tree.

0 commit comments

Comments
 (0)