-
Notifications
You must be signed in to change notification settings - Fork 14.9k
[OpenMP] Add OPENMP_INCLUDE_TESTS
#143390
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
base: main
Are you sure you want to change the base?
Conversation
If clang is not being built as part of this build, install headers into `include` rather than `lib/clang/21/include` (the latter, in clangless builds, will not be automatically included in search paths). This, combined with llvm#143390 , allows builds that include OpenMP but not clang to build successfully.
More specifically, this variable disables configuring of tests. None of the OpenMP tests is built by default build targets. |
If clang is not being built as part of this build, install headers into `include` rather than `lib/clang/21/include` (the latter, in clangless builds, will not be automatically included in search paths). This, combined with llvm#143390 , allows builds that include OpenMP but not clang to build successfully.
935736c
to
88f2c31
Compare
If clang is not being built as part of this build, install headers into `include` rather than `lib/clang/21/include` (the latter, in clangless builds, will not be automatically included in search paths). This, combined with llvm#143390 , allows builds that include OpenMP but not clang to build successfully.
If clang is not being built as part of this build, install headers into `include` rather than `lib/clang/21/include` (the latter, in clangless builds, will not be automatically included in search paths). This, combined with llvm#143390 , allows builds that include OpenMP but not clang to build successfully.
This is a cmake variable which, if set to `OFF`, will disable building of tests. It defaults to the value of `LLVM_INCLUDE_TESTS`.
25da632
to
d9dafb0
Compare
@Meinersbur Wasn't sure who to tag with this, but you've touched this file recently. Mind having a look or letting me know if there's anyone else more suited? |
It would help, if you would line out the issue you are trying to address with this patch. |
@jprotze LLVM has |
For OpenMP specifically, the tests require Clang. With this flag set and a few other changes from another MR it becomes possible to build libopenmp as part of an LLVM build that does not build clang. ... Or at least last I checked a few weeks ago. Things could have changed since then. |
@jprotze is referring to llvm-project/openmp/cmake/OpenMPTesting.cmake Lines 200 to 205 in e557ad6
Why isn't this sufficient to disable tests when Clang is not present? |
My point is actually that compilation for all tests is triggered by lit run lines. |
This is a cmake variable which, if set to
OFF
, will disable building/configuring oftests. It defaults to the value of
LLVM_INCLUDE_TESTS
.