Skip to content

Commit 6cd7847

Browse files
ntjohnson1grtlr
authored andcommitted
Fix building Web Viewer on macOS (#10828)
### Related Closes #9849 ### What Basically mac has a fun combination where you can have `clang`/`llvm` components but not `llvm-ar`. Mac's `ar` pads bytes in way that make llvm barf. Our pixi env for c++ has the `cxx-compiler` package which has a more full fledged llvm install. On mac on activation set `AR` to point to `llvm-ar`. It works on my machine! I'm not sure if we should have a second person try or if we should setup a test for the web build on mac just for this weird edge case.
1 parent 3a4430f commit 6cd7847

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pixi.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ EXECUTABLE_EXTENSION = ""
5353
# The executable extension for binaries on the current platform.
5454
EXECUTABLE_EXTENSION = ".exe"
5555

56+
# TODO(rust-lang/stacker#127): Work around until wasm build on mac is resolved
57+
[target.osx-64.activation.env]
58+
AR = "${PIXI_PROJECT_ROOT}/.pixi/envs/cpp/bin/llvm-ar"
59+
60+
[target.osx-arm64.activation.env]
61+
AR = "${PIXI_PROJECT_ROOT}/.pixi/envs/cpp/bin/llvm-ar"
62+
5663
# python-dev
5764

5865
[feature.python-dev.activation.env]

0 commit comments

Comments
 (0)