-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
[offload] [cmake] Standalone build test logic is broken #90333
Comments
CC @jdoerfert |
@llvm/issue-subscribers-offload Author: Michał Górny (mgorny)
I'm trying to figure out how to build it post-openmp/offload split, and the test logic just doesn't seem to make any sense to me.
So far I've noticed that:
Even if I copy the directory, ensure that C/C++ compiler is clang and make the whole CMake pass, the test target seems to be broken:
And if I remove the wrong dependency from
|
I think we should be able to set up the build system to work fine standalone. We should rewrite all of the offloading CMake honestly. I'll try to get on that once my other overhaul patches land. |
Fix the DetectTestCompiler project use to reference the openmp source tree, since the respective files were not copied to offload, and there is no point in duplicating them. Fixes llvm#90333
Fix the DetectTestCompiler project use to reference the openmp source tree, since the respective files were not copied to offload, and there is no point in duplicating them. Fixes llvm#90333
Fix the DetectTestCompiler project use to reference the openmp source tree, since the respective files were not copied to offload, and there is no point in duplicating them. Fixes llvm#90333
Fix the DetectTestCompiler project use to reference the openmp source tree, since the respective files were not copied to offload, and there is no point in duplicating them. Fixes llvm#90333
Fix the DetectTestCompiler project use to reference the openmp source tree, since the respective files were not copied to offload, and there is no point in duplicating them. Fixes llvm#90333
I'm trying to figure out how to build it post-openmp/offload split, and the test logic just doesn't seem to make any sense to me.
So far I've noticed that:
OpenMPTesting
logic that tries to useOPENMP_TEST_{C,CXX}_COMPILER
cmake/DetectTestCompiler
directories has not been copied fromopenmp
, so the whole logic failstest
directory instead usesCMAKE_{C,CXX}_COMPILER
Even if I copy the directory, ensure that C/C++ compiler is clang and make the whole CMake pass, the test target seems to be broken:
And if I remove the wrong dependency from
test/CMakeLists.txt
, the tests fail because of:The text was updated successfully, but these errors were encountered: