Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
It's a simple fix that should work, but could someone try compiling it on macOS? I don´t have a mac computer...
openmp/runtime/src/kmp_config.h.cmake | ||
---|---|---|
97 | Is this enough? We need to check the target OS, because even if the user builds on MacOS with libomptarget it won't always be included like if the user just passed -fopenmp. |
openmp/runtime/src/kmp_config.h.cmake | ||
---|---|---|
97 | If I am not mistaken, that is already checked on the OpenMP CMakeLists.txt file. OPENMP_ENABLE_LIBOMPTARGET can only be set to 1 if the target OS is not either macOS or Windows. But do you think it would be better to tie that to something like ! (KMP_OS_WINDOWS || KMP_OS_DARWIN)? |
openmp/runtime/src/kmp_config.h.cmake | ||
---|---|---|
97 | You're right, forgot we did that check. It'll work for now and I guess we can revisit it if we ever want to lift that restriction. |
openmp/runtime/src/kmp_config.h.cmake | ||
---|---|---|
97 | Perfect! I'll land it then. |
Is this enough? We need to check the target OS, because even if the user builds on MacOS with libomptarget it won't always be included like if the user just passed -fopenmp.