Make sure that "omp_lib.h" is installed
In https://reviews.llvm.org/D122015/ I updated Flang's build scripts so that "omp_lib.h" is copied into the build directory. The driver is updated so that it knows where to look for this header file. However, we haven't really considered "installing" it. I'm creating this ticket as a placeholder and also so that we don't forget to extend D122015 when the time is right.
We may want to check Clang as our source of inspiration. Some header files are installed here: https://github.com/llvm/llvm-project/blob/95ea3e86bb72d3e4988af1affe3bc93138978db5/clang/lib/Headers/CMakeLists.txt#L248-L266.
-Andrzej
@llvm/issue-subscribers-openmp
@banach-space is this ticket still valid?
Yes, it seems, the header file is still being copied and TODO for the install target also exists - https://github.com/llvm/llvm-project/blob/082a004690eb40d62287d98ec5c5b1de9d7bcf92/flang/tools/f18/CMakeLists.txt#L71.
Sorry @shiltian , I missed your message. @xgupta , thanks for checking!
@banach-space is this still an issue, or could it be closed?
@eugeneepshteyn I've not worked on Flang for quite some time now, so not really sure. Unless you can confirm, I would just close this ticket - I won't be looking into this.
From flang installation directory:
$ find . -name omp_lib.h
./include/flang/OpenMP/omp_lib.h
./include/flang/omp_lib.h
Closing.