From 3a1843bbfe0c5aa907ed844b6a8044bec334f288 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 26 Dec 2022 19:19:11 +0900 Subject: [PATCH] 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 ``` --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f01300d..7461adf 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ MALLOC_IMPL ?= dlmalloc # yes or no BUILD_LIBC_TOP_HALF ?= yes # The directory where we will store intermediate artifacts. -OBJDIR ?= $(CURDIR)/build +OBJDIR ?= $(CURDIR)/build/$(TARGET_TRIPLE) # When the length is no larger than this threshold, we consider the # overhead of bulk memory opcodes to outweigh the performance benefit, -- 2.39.2