[OpenMP] Fix library path missing when using OpenMP
authorJoseph Huber <jhuber6@vols.utk.edu>
Mon, 28 Mar 2022 16:23:21 +0000 (12:23 -0400)
committerJoseph Huber <jhuber6@vols.utk.edu>
Mon, 28 Mar 2022 18:30:35 +0000 (14:30 -0400)
commitfceea4e11028f4bfbafbd6893ddeb319420107d9
tree6b7cca6437bca42d58acf26e564534eb43e2f09e
parent7c38fd605ba85657a0ecbea75a8e3a68174d3dff
[OpenMP] Fix library path missing when using OpenMP

The changes in D122444 caused OpenMP programs built with the
LLVM_ENABLE_RUNTIMES options to stop finding the libraries. We generally
expect to link against the libraries associated with the clang
installation itself but we no longer implicitly included that directory.
This patch adds in the include path of the clang installations library
to ensure we can find them.

Reviewed By: jdoerfert, MaskRay

Differential Revision: https://reviews.llvm.org/D122592
clang/lib/Driver/ToolChains/CommonArgs.cpp
clang/lib/Driver/ToolChains/CommonArgs.h
clang/test/Driver/openmp-library-path.c [new file with mode: 0644]