Skip to content

Update to enable clang cross compile#1180

Open
Bacon-O wants to merge 1 commit intoFrogging-Family:masterfrom
Bacon-O:clang-cross-compile
Open

Update to enable clang cross compile#1180
Bacon-O wants to merge 1 commit intoFrogging-Family:masterfrom
Bacon-O:clang-cross-compile

Conversation

@Bacon-O
Copy link
Copy Markdown

@Bacon-O Bacon-O commented Feb 9, 2026

clang-cross-compile

In customation added _llvm_target_arch=""

Configure prepare to read _llvm_target_arch

blank --> no change/default

"x86_64-linux-gnu" --> enables cross compiling for x86_64-linux-gnu

In customation added _llvm_target_arch=""
Configure prepare to read _llvm_target_arch
Default/blank --> no change
"x86_64-linux-gnu" --> enables cross compiling for x86_64-linux-gnu
@Bacon-O Bacon-O marked this pull request as ready for review February 9, 2026 22:04
@Tk-Glitch Tk-Glitch requested a review from AdelKS February 11, 2026 21:14
@AdelKS
Copy link
Copy Markdown
Collaborator

AdelKS commented Feb 11, 2026

Hey!

So, from what I am understanding, the -march=foo check if foo applies to your machine makes cross-compiling not work since, well, it's not your machine. And you are adding a workaround for that.

What else do you need to edit for cross compiling to work with linux-tkg ?

@Bacon-O
Copy link
Copy Markdown
Author

Bacon-O commented Mar 22, 2026

Hey!

So, from what I am understanding, the -march=foo check if foo applies to your machine makes cross-compiling not work since, well, it's not your machine. And you are adding a workaround for that.

What else do you need to edit for cross compiling to work with linux-tkg ?

I was looking at this a while ago and yes there was more I had to set. I was cross compiling X86 on ARM64. It was a finicky environment I had to setup.

This is on my todo list to revisit so when I do will update what else is needed.

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