Skip to content
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

rewriter: wrap callgate header in #ifndef __ASSEMBLER__ so it doesn't get interpreted as asm #498

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

kkysen
Copy link
Contributor

@kkysen kkysen commented Jan 21, 2025

In meson, *.S asm files are pre-processed with the C preprocessor, and thus C flags are used to compile *.S asm files (unlike *.s asm files). To fix this on the meson side, we'd have to manually add args to each target instead of using add_project_arguments(args, language: 'c'), so this way is simpler.

…'t get interpreted as asm

In `meson`, `*.S` asm files are pre-processed with the C preprocessor,
and thus C flags are used to compile `*.S` asm files (unlike `*.s` asm files).
To fix this on the `meson` side, we'd have to manually add args to each target
instead of using `add_project_arguments(args, language: 'c')`, so this way is simpler.
@kkysen kkysen requested a review from ayrtonm January 21, 2025 14:38
Copy link
Contributor

@ayrtonm ayrtonm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@kkysen kkysen merged commit 2f5e929 into main Jan 21, 2025
33 of 34 checks passed
@kkysen kkysen deleted the kkysen/callgates-ifndef-ASSEMBLER branch January 21, 2025 18: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.

2 participants