Page MenuHomeFreeBSD

Add cloudabi-clang.
ClosedPublic

Authored by ed on Jun 22 2015, 8:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 21, 8:12 PM
Unknown Object (File)
Mar 19 2024, 2:08 AM
Unknown Object (File)
Mar 19 2024, 2:08 AM
Unknown Object (File)
Mar 19 2024, 1:55 AM
Unknown Object (File)
Dec 20 2023, 1:03 AM
Unknown Object (File)
Nov 25 2023, 12:14 PM
Unknown Object (File)
Nov 23 2023, 7:15 AM
Unknown Object (File)
Nov 21 2023, 9:43 AM
Subscribers
None

Details

Reviewers
brooks
bapt
Summary

This port adds the necessary symbolic links to make Clang work as a cross compiler for CloudABI. Clang can automatically derive its target from argv[0]. We don't need to install another copy of Clang. It is sufficient to invoke it the right way.

CloudABI support is not yet part of a released version of Clang. This is why we still need to depend on llvm-devel. My intent is to stick to a fixed compiler version at one point in time.

Test Plan

The resulting compiler (x86_64-unknown-cloudabi-cc) seems to be able to compile C code properly. It also invokes the linker in the right way.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

ed retitled this revision from to Add cloudabi-clang..
ed updated this object.
ed edited the test plan for this revision. (Show Details)
ed added reviewers: brooks, bapt.
ed set the repository for this revision to rP FreeBSD ports repository.
bapt requested changes to this revision.Jun 22 2015, 8:24 PM
bapt edited edge metadata.

You should add a ONLY_FOR_ARCH to ensure this port only tries to build on amd64

This revision now requires changes to proceed.Jun 22 2015, 8:24 PM

Hi Baptiste,

In D2885#56031, @bapt wrote:

You should add a ONLY_FOR_ARCH to ensure this port only tries to build on amd64

What's pretty awesome is that this isn't needed. Regardless of the architecture we're on, llvm-devel is able to target x86. By adding these symbolic links, we effectively get a cross compiler for x86-64.

The idea is that we want to add CloudABI support for other architectures. In that case we'll extend this port to simply add more symbolic links. One port that gives you a compiler for all architectures.

bapt edited edge metadata.

Then go ahead :)

This revision is now accepted and ready to land.Jun 23 2015, 8:21 AM