Page MenuHomeFreeBSD

Add cloudabi-clang.
ClosedPublic

Authored by ed on Jun 22 2015, 8:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 4, 7:20 AM
Unknown Object (File)
Sun, Dec 1, 6:37 PM
Unknown Object (File)
Sat, Nov 23, 9:18 PM
Unknown Object (File)
Sat, Nov 23, 3:26 PM
Unknown Object (File)
Nov 21 2024, 3:29 AM
Unknown Object (File)
Nov 20 2024, 12:20 AM
Unknown Object (File)
Nov 19 2024, 7:34 AM
Unknown Object (File)
Nov 14 2024, 4:44 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