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

bindgen + llvm-19 optimize out some needed const #2956

Open
okias opened this issue Oct 18, 2024 · 1 comment
Open

bindgen + llvm-19 optimize out some needed const #2956

okias opened this issue Oct 18, 2024 · 1 comment

Comments

@okias
Copy link

okias commented Oct 18, 2024

#define DRM_RS_IOCTL(FOO) \
   static const unsigned long DRM_RS_IOCTL_##FOO = DRM_IOCTL_##FOO

DRM_RS_IOCTL(NOUVEAU_EXEC);

becomes nak_bindings.rs.txt

and code fails later with

error[E0425]: cannot find value `DRM_RS_IOCTL_NOUVEAU_EXEC` in this scope

Original bug: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12008

@pvdrz
Copy link
Contributor

pvdrz commented Nov 11, 2024

any luck using --clang-macro-fallback?

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

No branches or pull requests

2 participants