rust-bindgen icon indicating copy to clipboard operation
rust-bindgen copied to clipboard

bindgen + llvm-19 optimize out some needed const

Open okias opened this issue 1 year ago • 0 comments

#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

okias avatar Oct 18 '24 01:10 okias