omp50_taskdep_depobj.c relies on the test compiler's omp.h file.
If the test compiler does not have an omp.h file, then use the one
within the build tree.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Rather than disabling the test, did you consider adding an -I${CMAKE_CURRENT_BINARY_DIR}/runtime/src (where omp.h resides) to the clang test flags? Even if there is an omp.h already on the system, libomp's header should be used instead since it may contain new symbols not yet present in the system's omp.h. It might even be -isystem to treat it like a system header.
The test doesn't become disabled. It uses the generated omp.h instead. This is the only test that attempts to use the system omp.h (or test compiler's omp.h). The original purpose was to test GCC compatibility of depobj which GCC defines differently than our omp.h.
Thanks. I can confirm that this fixes the immediate problem for me.
omp50_taskdep_depobj.c relies on the test compiler's omp.h file. If the test compiler does not have an omp.h file, then the one within the build tree.
You seem to missing a verb in the commit message.
Indeed I missed that %flags-use-compiler-omp-h is specifically to test not using libomp's own omp.h.