# Building Swift toolchain against prebuilt LLVM binaries (under Linux)

**URL:** <https://forums.swift.org/t/building-swift-toolchain-against-prebuilt-llvm-binaries-under-linux/85154>\
**Category:** Source Tooling\
**Created:** [March 5, 2026, 4:40am UTC](https://forums.swift.org/t/building-swift-toolchain-against-prebuilt-llvm-binaries-under-linux/85154 "2026-03-05T04:40:55Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Finagolfin](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/finagolfin/32/34388_2.png) [@Finagolfin](https://forums.swift.org/u/Finagolfin)\
**Post date:** [March 14, 2026, 4:35am UTC](https://forums.swift.org/t/building-swift-toolchain-against-prebuilt-llvm-binaries-under-linux/85154/8 "2026-03-14T04:35:54Z")

</div>

> [@brainchild](#):
>
> The design objective of LLVM seems to be general and complete coverage of high-level programming languages. It is concerning that a lack of convergence may represent overall limitations of LLVM, perhaps prompting reflection over the compatibility of the two projects.

Nah, any software project grows in new directions, and I imagine that the Swift devs, who often are or were LLVM devs, keep adding new LLVM features, which they may then upstream.

> [@brainchild](#):
>
> > [@Finagolfin](#):
> >
> > Do you have any concrete recommendations for easily interpreting the relevant points of the sources you mention?
> 
> I reviewed both, but remain confused about a set of flags that prompts the most basic build of of the local working copy of the project. Flags limited to `-RA` was not successful.

First off, I never asked the question you attribute to me, so I ask that you carefully remove any AI slop you are using.

Using `-RA` alone should work, [as I show in a container here](https://forums.swift.org/t/building-a-linux-aarch64-toolchain-on-macos-with-containerization/84347), so you'll have to be more specific about what didn't work for you.

> [@brainchild](#):
>
> Would you mind identifying the point (e.g. via a link to one or more specific comments) where the particular issue is introduced or resolved in the discussion?

I suggest you skim that thread till you find the relevant comments, as there is a detailed discussion of packaging there, but the best approach is to actually look at [the Fedora packaging script](https://src.fedoraproject.org/rpms/swift-lang/blob/1802f1fb2fb7f0c6224d0b1e3cee836181f7b6b9/f/swift-lang.spec#_398) I pointed you at twice above.

---

_[View the full topic](https://forums.swift.org/t/building-swift-toolchain-against-prebuilt-llvm-binaries-under-linux/85154)._
