Cross-build target for macos compilation#1115
Conversation
Signed-off-by: Mateo Lelong <mateo.lelong@datadoghq.com>
|
Hi! I dont see how this change enables aarch64 support. Also aarch64 should already be supported. Is there a missing commit in the PR maybe? |
|
Hey @jprendes, you're right that this isn't exactly about adding aarch64 target support. Let me rephrase: Problem: make build fails entirely on macOS because procfs v0.17.0 only supports Linux/Android. There's no workaround, it uses linux syscalls. Solution: cross wraps cargo in docker, so the actual compilation happens on linux. The The new cross-build / cross-build-* targets are just a replacement for running cross instead of cargo, which work for macos (should also work for other platforms I think 🤔) |
Hey runwasi folks 👋
I have this tiny PR for enabling compilation on macos using cross
Usage
Test plan
make cross-buildbuilds all runtimes inRUNTIMESmake buildunaffected (no regression)