]> git.proxmox.com Git - wasi-libc.git/commitdiff
Use a separate OBJDIR for each TARGET_TRIPLE (#373)
authorYAMAMOTO Takashi <yamamoto@midokura.com>
Mon, 26 Dec 2022 10:19:11 +0000 (19:19 +0900)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 2 Aug 2023 10:24:08 +0000 (12:24 +0200)
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

index f01300ddc174a2472ef5a1170d37063ddb6b4e7c..7461adfd08e5bf34bee77734213a029996fa97a8 100644 (file)
--- 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,