Skip to content

add support for linux clang cross compiles#1403

Open
ryleu wants to merge 1 commit intosmartcmd:mainfrom
ryleu:linux-clang-support
Open

add support for linux clang cross compiles#1403
ryleu wants to merge 1 commit intosmartcmd:mainfrom
ryleu:linux-clang-support

Conversation

@ryleu
Copy link
Copy Markdown

@ryleu ryleu commented Mar 24, 2026

Description

add support for compiling the exe from linux using clang

Changes

Previous Behavior

builds on linux with clang would fail in a number of ways

Root Cause

mostly due to weird capitalization issues and the use of backslashes in file paths

New Behavior

file paths now use forward slashes and proper capitalization, which shouldn't affect how it builds with msvc

Fix Implementation

i used a lot of sed find and replace. i also added a nix flake for building on nixos, which can serve as a sort of build instructions for people on linux too.

AI Use Disclosure

just for debugging help, not for any actual code writing. i never copy-pasted any ai code into my editor

Related Issues

@ryleu
Copy link
Copy Markdown
Author

ryleu commented Mar 24, 2026

sorry for the giant diff, but it had to be done at some point

@StevenSYS
Copy link
Copy Markdown

StevenSYS commented Mar 24, 2026

Doesn't #465 do the same thing as this PR?

@PUFFMON
Copy link
Copy Markdown

PUFFMON commented Mar 24, 2026

Could you modify COMPILE.md to add some instructions on how to compile it with clang?

@Jazzitch
Copy link
Copy Markdown
Contributor

@StevenSYS yes but it's really old.

@ryleu
Copy link
Copy Markdown
Author

ryleu commented Mar 26, 2026

Could you modify COMPILE.md to add some instructions on how to compile it with clang?

yeah i can this weekend. all the steps are in flake.nix if you wanna test it right now tho

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.

4 participants