Skip to content

Commit a5ba5e1

Browse files
yamtjohn-sharratt
authored andcommitted
Use a separate OBJDIR for each TARGET_TRIPLE (WebAssembly#373)
To make it easier to create a sysroot with both triples. Eg. ``` make -j4 CC=/opt/wasi-sdk-16.0/bin/clang make -j4 CC=/opt/wasi-sdk-16.0/bin/clang THREAD_MODEL=posix ```
1 parent cd87926 commit a5ba5e1

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
@@ -20,7 +20,7 @@ MALLOC_IMPL ?= dlmalloc
2020
# yes or no
2121
BUILD_LIBC_TOP_HALF ?= yes
2222
# The directory where we will store intermediate artifacts.
23-
OBJDIR ?= $(CURDIR)/build
23+
OBJDIR ?= $(CURDIR)/build/$(TARGET_TRIPLE)
2424

2525
# When the length is no larger than this threshold, we consider the
2626
# overhead of bulk memory opcodes to outweigh the performance benefit,

0 commit comments

Comments
 (0)