-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[flang-rt] Added FLANG_RT_QUADMATH_INCLUDE_DIR option. #130378
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
Conversation
It allows specifying path to `quadmath.h` directory, which is needed when building flang-rt with FLANG_RUNTIME_F128_MATH_LIB=libquadmath using clang.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just -DCMAKE_CXX_FLAGS=-I/usr//lib/gcc/x86_64-linux-gnu/13/include
? No additional configuration complexity needed.
Clang is already searching for gcc installations, just doesn't add its include dir to the default header search path.
|
I do not think it is possible to use both clang's and gcc's include paths in the same clang compilation. If you try you would get lots of errors due to conflicting header files. |
From the documention:
If the issue is that the parameter is not forwarded to the runtimes build, that's what |
Isn't this exactly what Better solution here: #130411. No additional configuration input from the user required. |
I tried exactly |
Sorry, there was a typo: |
No problem :) I did try it (without the typo) before I posted this PR, that is why I went with the extra var. I could have made a different typo though. |
I like your solution better. Thanks! Let me try it. |
Closing this in favor of #130411. |
It allows specifying path to
quadmath.h
directory,which is needed when building flang-rt with
FLANG_RUNTIME_F128_MATH_LIB=libquadmath using clang.