Skip to content

chore: fix RISC-V guest build on macOS 26#73

Merged
0x-r4bbit merged 1 commit intomainfrom
fix/cargo-config
Apr 29, 2026
Merged

chore: fix RISC-V guest build on macOS 26#73
0x-r4bbit merged 1 commit intomainfrom
fix/cargo-config

Conversation

@0x-r4bbit
Copy link
Copy Markdown
Collaborator

Add .cargo/config.toml setting CFLAGS_riscv32im_risc0_zkvm_elf to "-march=rv32im -nostdlib". This prevents cc-rs from injecting macOS-specific flags (-arch arm64, -mmacosx-version-min) into the riscv32-unknown-elf-gcc cross-compiler when building C dependencies (e.g. ring) for the guest target, which causes build failures on macOS 26 Tahoe.

Add .cargo/config.toml setting CFLAGS_riscv32im_risc0_zkvm_elf to
"-march=rv32im -nostdlib". This prevents cc-rs from injecting
macOS-specific flags (-arch arm64, -mmacosx-version-min) into the
riscv32-unknown-elf-gcc cross-compiler when building C dependencies
(e.g. ring) for the guest target, which causes build failures on
macOS 26 Tahoe.
@0x-r4bbit 0x-r4bbit merged commit 06a141e into main Apr 29, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants