diff options
author | Shilei Tian <i@tianshilei.me> | 2023-05-06 23:26:43 -0400 |
---|---|---|
committer | Shilei Tian <i@tianshilei.me> | 2023-05-06 23:26:51 -0400 |
commit | e87e4cfc12884479ff402e0689f374f155a41abf (patch) | |
tree | 5d082c748eaf6edc7acdbadb435f41338a720418 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | |
parent | 67a98528d371fdd4caa0754e9b959c0e1df97bf8 (diff) | |
download | llvm-e87e4cfc12884479ff402e0689f374f155a41abf.zip llvm-e87e4cfc12884479ff402e0689f374f155a41abf.tar.gz llvm-e87e4cfc12884479ff402e0689f374f155a41abf.tar.bz2 |
[OpenMP] Make `libomptarget` link against `libomp`
In `libomptarget` we use a couple of functions from `libomp`, but we didn't link
`libomptarget` against `libomp`. That will not work on some platforms such
as macOS. A linker error will be encountered because those symbols are not resolved
at link time when building `libomptarget`. This patch simply makes `libomptarget`
link agains `libomp`, makes it a "user" of `libomp`. I think this will not break
the policies between `libomp` and `libomptarget`.
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D149617
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
0 files changed, 0 insertions, 0 deletions