Page MenuHomeFreeBSD

llvm: Reduce overlinking with the minimal llvm
ClosedPublic

Authored by andrew on Nov 9 2023, 2:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 25, 5:31 PM
Unknown Object (File)
Oct 5 2024, 7:00 PM
Unknown Object (File)
Oct 5 2024, 4:13 AM
Unknown Object (File)
Oct 2 2024, 11:07 AM
Unknown Object (File)
Oct 2 2024, 6:25 AM
Unknown Object (File)
Sep 30 2024, 8:05 AM
Unknown Object (File)
Sep 29 2024, 3:21 AM
Unknown Object (File)
Sep 28 2024, 4:33 PM
Subscribers

Details

Summary

We only need to link against libz and libzstd when linking against the
fill libllvm, libllvmminimal doesn't use either library. Move adding
libz and libzstd to the list of libraries to link against to where
we decide to use the full libllvm.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 54351
Build 51241: arc lint + arc unit

Event Timeline

andrew requested review of this revision.Nov 9 2023, 2:46 PM

Hmm are you sure this works? I remember that it failed when you built the bootstap tblgen variants, and I think I ran into that again when doing the llvm-17-update branch.

I tested a native buildworld of main from 13.2, default GitHub cross build [1], and a GitHub cross build where I forced -j1. I haven't seen any issues where they failed to build.

[1] https://github.com/zxombie/freebsd/actions/runs/6813523900
[2] https://github.com/zxombie/freebsd/actions/runs/6813861833

OK then, I guess this might also help for people building this on systems other than FreeBSD.

This revision is now accepted and ready to land.Nov 9 2023, 4:28 PM