Skip to content

Updated code to support linux arm64 architecture#3

Closed
lodenrogue wants to merge 2 commits into
confh:masterfrom
lodenrogue:feature/support-linux-arm64
Closed

Updated code to support linux arm64 architecture#3
lodenrogue wants to merge 2 commits into
confh:masterfrom
lodenrogue:feature/support-linux-arm64

Conversation

@lodenrogue

@lodenrogue lodenrogue commented Jun 21, 2026

Copy link
Copy Markdown

This resolves #2 and adds support for arm64.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds support for the linux-arm64 target, updating the build scripts, runtime embedding, distribution packaging, and platform update mechanisms. The feedback identifies two important issues: first, build_linux.sh must explicitly build both amd64 and arm64 runtimes because the compiler embeds both, and relying on the host's architecture will break the build; second, defaultProjectTarget() in src/project.go needs to handle macOS (darwin) explicitly to prevent generating a Linux target on macOS systems.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread build_linux.sh Outdated
Comment thread src/project.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@confh

confh commented Jun 21, 2026

Copy link
Copy Markdown
Owner

thanks for the PR.

i actually ended up refactoring how runtimes are handled in v0.2.7 to keep the compiler binary size down (it went from ~60MB to ~16MB). instead of embedding the runtimes, the compiler now pulls them directly from the github release page on demand and caches them in ~/.tiny/runtimes.

This also fixes the linux-arm64 support issue here.

@confh confh closed this Jun 21, 2026
@lodenrogue

Copy link
Copy Markdown
Author

Nice. You took some of my code to solve the problem. Good luck with your project.

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.

build_linux.sh fails on arm64 architecture

2 participants