WIP: clang migration #26

Draft
emma wants to merge 5 commits from clang-migration into master
Owner

Closes #23

Closes #23
emma added 1 commit 2024-01-30 16:17:24 -07:00
emma requested review from nitori 2024-01-30 16:17:31 -07:00
emma added the
extra
core
labels 2024-01-30 16:17:37 -07:00
emma added 1 commit 2024-01-30 16:30:58 -07:00
emma added 1 commit 2024-01-30 16:58:52 -07:00
emma added 1 commit 2024-01-30 19:40:17 -07:00
Owner

Going to rebuild all of core using this today, with cc linked to clang and CC=clang. You may hear back from me soon(tm)

Going to rebuild all of core using this today, with cc linked to clang and CC=clang. You may hear back from me soon(tm)
Owner

Oh, I'll actually have to rebuild core twice to make sure everything works without gcc, since I'm building it with a chroot with gcc installed, but not as the primary compiler.
llvm, clang, and rust each take several hours to build so you might hear back from me in a day or two regarding this.

FWIW, I have these environment variables set:

CC="clang"
CPP="clang-cpp"
CXX="clang++"
AR="llvm-ar"
NM="llvm-nm"
RANLIB="llvm-ranlib"

Eventually I'll look into what other llvm distros use so I don't have to do this and everything just works by default.

Oh, I'll actually have to rebuild core twice to make sure everything works *without* gcc, since I'm building it with a chroot *with* gcc installed, but not as the primary compiler. llvm, clang, and rust each take several hours to build so you might hear back from me in a day or two regarding this. FWIW, I have these environment variables set: ``` CC="clang" CPP="clang-cpp" CXX="clang++" AR="llvm-ar" NM="llvm-nm" RANLIB="llvm-ranlib" ``` Eventually I'll look into what other llvm distros use so I don't have to do this and everything just works by default.
Owner

Need to figure out C++ stdlib shenanigans since clang is broken without gcc, but everything does build for the most part. Notable exceptions are grub (which doesn't build) and rust (which I didn't build to save 2-3 hours of time)

Need to figure out C++ stdlib shenanigans since clang is broken without gcc, but everything does build for the most part. Notable exceptions are grub (which doesn't build) and rust (which I didn't build to save 2-3 hours of time)
nitori added 1 commit 2024-02-18 10:46:39 -07:00
This pull request is marked as a work in progress.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin clang-migration:clang-migration
git checkout clang-migration
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: bonsai/repo#26
No description provided.