Page MenuHomeFreeBSD

clang: enable the LoongArch target in in-tree llvm builds
ClosedPublic

Authored by zhaoxiaoqiang007_gmail.com on Tue, Sep 22, 2:25 PM.
Tags
None
Referenced Files
F176181237: D59899.diff
Fri, Oct 16, 6:10 PM
Unknown Object (File)
Thu, Oct 15, 4:01 PM
Unknown Object (File)
Thu, Oct 15, 4:20 AM
Unknown Object (File)
Wed, Oct 14, 8:16 AM
Unknown Object (File)
Tue, Oct 13, 5:10 AM
Unknown Object (File)
Mon, Oct 12, 7:53 AM
Unknown Object (File)
Mon, Oct 12, 5:04 AM
Unknown Object (File)
Mon, Oct 12, 4:04 AM

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Do we need a change in share/mk/src.opts.mk? Adding LLVM_TARGET_LOONGARCH to __DEFAULT_NO_OPTIONS for now?

src.conf.5 will need to be regenerated as well

I'm generally fine with this, but it is there a concrete plan to add LoongArch support for the base system? Otherwise I would advise to use one of the llvm ports for bringup first.

Btw, this would also need adjustments in share/mk/src.opts.mk to add the MK_LLVM_TARGET_LOONGARCH make macro.

Do we need a change in share/mk/src.opts.mk? Adding LLVM_TARGET_LOONGARCH to __DEFAULT_NO_OPTIONS for now?

src.conf.5 will need to be regenerated as well

Disable it for now is make sense

is there a concrete plan to add LoongArch support for the base system?

There's a lot of work (in review) to add support. I suspect we'll be iterating on it for some time, but IMO it's reasonable to have the toolchain infrastructure in the base system now.

is there a concrete plan to add LoongArch support for the base system?

There's a lot of work (in review) to add support. I suspect we'll be iterating on it for some time, but IMO it's reasonable to have the toolchain infrastructure in the base system now.

agree, as it already works well

I just removed the remnants of the Mips target in rGb5d1e0c5a4929e2be3bc58aad8e5b707860ec0fd, please rebase.

In D59899#1376284, @dim wrote:

I just removed the remnants of the Mips target in rGb5d1e0c5a4929e2be3bc58aad8e5b707860ec0fd, please rebase.

got it

rebase main
disable llvm LoongArch on other build target

I will commit this with a few small changes.

This revision is now accepted and ready to land.Mon, Sep 28, 3:15 PM