Skip to content

fix: add -D__ILP32__ in zkvm only #2279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2025

Conversation

leruaa
Copy link
Contributor

@leruaa leruaa commented May 7, 2025

Motivation

The CFLAG -D__ILP32__ has been added in #2185 to allow zkVM programs that depends on ring to build, but the flag is also active during the build script compilation (that not occurs inside the zkVM), leading to build errors.

Solution

Use the CFLAGS variant that include the riscv32im_succinct_zkvm_elf target in order to add -D__ILP32__ only when needed.

Closes #2274

@leruaa leruaa merged commit 2b160aa into dev May 7, 2025
13 checks passed
@leruaa leruaa deleted the aurelien/dont-add-ilp32-for-programs-build-scripts branch May 7, 2025 20:04
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.

ring fails to compile after upgrading to 4.2.0
2 participants