-
Notifications
You must be signed in to change notification settings - Fork 715
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
Unable to prevent Clang headers from being used #2842
Comments
why is clang not issuing a patch release? |
ah. |
@workingjubilee @wmmc88 is there something we can do from |
Is it possible for bindgen to provide a way to prevent the use of clang's builtin headers (i.e. |
it depends, if you can filter it using |
All versions of LLVM 18 have a bug where the
__prefetch
intrinsic has the wrong definition. This bug was fixed in llvm/llvm-project#93235, but will not be released until LLVM 19 comes out.When
bindgen
invokesclang
to parse the headers, it looks likeclang
is actually using its buggedintrin.h
which brings in the invalid signature for__prefetch
. This leads to the failure to generate bindings for any header that pulls in msvc'sintrin.h
onaarch64
. I attempted to useclang
's-fno-builtin
arg to preventbindgen
from pulling in the wrong definition of__prefetch
, but it seems to not have any effect here.Bindgen Invocation
Actual Results
Expected Results
Should compile sucessfully
The text was updated successfully, but these errors were encountered: