llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Make sure that "omp_lib.h" is installed

Open banach-space opened this issue 4 years ago • 7 comments

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

banach-space avatar Apr 05 '22 08:04 banach-space

@llvm/issue-subscribers-openmp

llvmbot avatar Apr 05 '22 08:04 llvmbot

@banach-space is this ticket still valid?

shiltian avatar Jan 20 '23 18:01 shiltian

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.

xgupta avatar Apr 11 '23 14:04 xgupta

Sorry @shiltian , I missed your message. @xgupta , thanks for checking!

banach-space avatar Apr 11 '23 15:04 banach-space

@banach-space is this still an issue, or could it be closed?

eugeneepshteyn avatar Sep 04 '25 19:09 eugeneepshteyn

@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.

banach-space avatar Sep 05 '25 08:09 banach-space

From flang installation directory:

$ find . -name omp_lib.h
./include/flang/OpenMP/omp_lib.h
./include/flang/omp_lib.h

Closing.

eugeneepshteyn avatar Sep 05 '25 12:09 eugeneepshteyn