[OpenMP] Handle sysroot option in offloading linker wrapper
authorJoseph Huber <jhuber6@vols.utk.edu>
Wed, 2 Mar 2022 17:38:29 +0000 (12:38 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Wed, 2 Mar 2022 18:02:41 +0000 (13:02 -0500)
commit3f7c3ff90e33393b7b8a0851f6056ec1d9c164af
treeb911476879d95dce027bedd4c7455a947533e043
parent758ddba38113b2ab48cd6e45d7617463969bf813
[OpenMP] Handle sysroot option in offloading linker wrapper

Summary:
This patch correctly handles the `--sysroot=` option when passed to the
linker wrapper. This allows users to correctly find libraries that may
contain offloading code if using this option.
clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp