Locietta / xanmod-kernel-WSL2

Xanmod kernel for WSL2, built by clang with ThinLTO enabled. Build & Release are automated by Github Action.
GNU General Public License v2.0
91 stars 20 forks source link

[Patch] Switch to LLVM-git and Fix Clang Build #40

Closed Locietta closed 1 year ago

Locietta commented 1 year ago

It turns out that -fexcess-precision isn't available until clang 16, and I'm locked by Arch's clang 15 now.

Will drop these patches once I can update LLVM toolchain.

EDIT: So I finally decide to use LLVM-git from archlinuxcn. Builds could be broken from time to time, but latest fixes should also be quickly applied.

Locietta commented 1 year ago

Gonna get link error with LLVM toolchain I think... Ref: https://forums.gentoo.org/viewtopic-p-8798385.html?sid=20217cf9adef604e31e9d35e2b6ea6c9 I've already hit it at local build, see if the automation will get the same result.

Locietta commented 1 year ago

Looks like fix already at latest mainline: https://github.com/ClangBuiltLinux/linux/issues/1907 Maybe wait util 6.4.11 then?

Locietta commented 1 year ago

Only 1 of the srso-fix patches is picked in this week's kernel release.

Pick up the other one anyway, and drop once it's merged (next week?).