HomePhabricator

Add Statically Linked Libraries

Authored by ashi1 on May 27 2020, 11:49 AM.

Description

Add Statically Linked Libraries

Add GNU Static Lib Tool, which supports the --emit-static-lib
flag. For HIP, a static library archive will be created and
consist of HIP Fat Binary host object with the device images embedded.
Using llvm-ar to create the static archive. Also, delete existing
output file to ensure a new archive is created each time.

Reviewers: yaxunl, tra, rjmccall, echristo

Subscribers: echristo, JonChesterfield, scchan, msearles

Differential Revision: https://reviews.llvm.org/D78759

Details

Committed
ashi1Jun 22 2020, 12:48 PM
Differential Revision
D78759: Add Statically Linked Libraries
Parents
rG77df5a8283ed: [HIP] Move HIP Linking Logic into HIP ToolChain
Branches
Unknown
Tags
Unknown