This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Fixed the test environment when building along with LLVM
ClosedPublic

Authored by tianshilei1992 on Dec 22 2020, 5:14 PM.

Details

Summary

Currently all built libraries in OpenMP are anywhere if building along
with LLVM. It is not an issue if we don't execute any test. However, almost all
tests for libomptarget fails because in the lit configuration, we only set
<build_dir>/libomptarget to LD_LIBRARY_PATH and LIBRARY_PATH. Since those
libraries are everywhere, clang can no longer find libomptarget.so or those
deviceRTLs anymore.

In this patch, we set a unified path for all built libraries, no matter whether
it is built along with LLVM or not. In this way, our lit configuration can work
propoerly.

Diff Detail

Event Timeline

tianshilei1992 created this revision.Dec 22 2020, 5:14 PM
tianshilei1992 requested review of this revision.Dec 22 2020, 5:14 PM
Herald added a project: Restricted Project. · View Herald Transcript
This revision is now accepted and ready to land.Jan 6 2021, 1:40 PM