This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Do not link static library with `-nogpulib`
ClosedPublic

Authored by jhuber6 on Jul 11 2022, 7:22 PM.

Details

Summary

Normally we do not link the device libraries if the user passed
nogpulib we do this for the standard bitcode library. This behaviour
was not added when using the static library for LTO, causing it to
always be linked in. This patch fixes that.

Diff Detail

Event Timeline

jhuber6 created this revision.Jul 11 2022, 7:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 11 2022, 7:22 PM
jhuber6 requested review of this revision.Jul 11 2022, 7:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 11 2022, 7:22 PM
This revision is now accepted and ready to land.Jul 12 2022, 12:06 AM
This revision was automatically updated to reflect the committed changes.