Skip to content

(llvm toolchain) fix cross support#6380

Closed
Arthapz wants to merge 1 commit intoxmake-io:devfrom
Arthapz:fix-llvm-cross
Closed

(llvm toolchain) fix cross support#6380
Arthapz wants to merge 1 commit intoxmake-io:devfrom
Arthapz:fix-llvm-cross

Conversation

@Arthapz
Copy link
Member

@Arthapz Arthapz commented May 1, 2025

i'm not sure about the impact of this, so it's a draft for now

@Doekin
Copy link
Contributor

Doekin commented May 1, 2025

I tested the changes on both Windows and Linux, and they mostly work fine. However, I did encounter a minor issue:

When using the --toolchain=llvm and --sdk=/usr/aarch64-linux-gnu options, it requires the --cross= parameter to be specified too. Without it, the build process fails with the following error:

$ xmake f -c -vD -p cross --toolchain=llvm --sdk=/usr/aarch64-linux-gnu
checking for architecture ... none
configure
{
    ccache = true
    theme = default
    diagnosis = true
    toolchain = llvm
    network = public
    clean = true
    sdk = /usr/aarch64-linux-gnu
    arch = none
    ndk_stdcxx = true
    proxy_pac = pac.lua
    builddir = build
    host = linux
    plat = cross
    kind = static
    mode = release
}
$ xmake -r -vD
error: @programdir/core/main.lua:329: @programdir/actions/build/main.lua:146: @programdir/modules/async/runjobs.lua:331: @programdir/core/tool/toolchain.lua:393: @programdir/toolchains/llvm/xmake.lua:64: attempt to index a nil value
stack traceback:
    [@programdir/toolchains/llvm/xmake.lua:64]:

@Arthapz
Copy link
Member Author

Arthapz commented May 2, 2025

#5527 (comment)

@waruqi
Copy link
Member

waruqi commented May 21, 2025

#6471

@waruqi waruqi closed this May 21, 2025
@Arthapz Arthapz deleted the fix-llvm-cross branch September 18, 2025 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants