Skip to content

Commit 7461de1

Browse files
authored
Use a separate OBJDIR for each TARGET_TRIPLE (#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 ebd3240 commit 7461de1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)