Build Target Task 2: Multi-Platform LLVM Support and Bootable Code Generation#1203
Merged
xushiwei merged 50 commits intogoplus:mainfrom Aug 24, 2025
cpunion:esp-llvm
Merged
Build Target Task 2: Multi-Platform LLVM Support and Bootable Code Generation#1203xushiwei merged 50 commits intogoplus:mainfrom cpunion:esp-llvm
xushiwei merged 50 commits intogoplus:mainfrom
cpunion:esp-llvm
Conversation
- Check LLGoROOT/crosscompile/wasi-libc first before downloading - Fallback to cached wasi-sdk download if not found locally - Update downloadAndExtract to return wasiSdkRoot path directly 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Add ESP Clang download and extraction for cross-compilation - Support multiple platforms: darwin/amd64, darwin/arm64, linux/amd64, linux/arm64, windows/amd64 - Integrate ESP Clang with target-based configuration system - Add ClangRoot and ClangBinPath fields to Export struct - Support .tar.xz extraction for ESP Clang packages - Prioritize LLGoROOT clang installation over cached downloads - Update build system to use custom clang for embedded platforms 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1203 +/- ##
==========================================
- Coverage 88.15% 87.79% -0.37%
==========================================
Files 34 35 +1
Lines 8470 8928 +458
==========================================
+ Hits 7467 7838 +371
- Misses 934 979 +45
- Partials 69 111 +42 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Add version suffix to ESP Clang cache directory path to enable automatic updates when espClangVersion changes. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
# Conflicts: # internal/build/build.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements ESP Clang multi-platform support for cross-compilation to embedded platforms. This is part of Task 2 (#1201) from the cross-platform compilation design.
Task 2 Implementation TODO
Multi-Platform LLVM Support
Target Configuration Support
esp-clangclang++to compatible withc++-target=xxxusesclangso doesn't compatible withc++(without libc++ for embed platform)- [ ] Stack configuration (default-stack-size, automatic-stack-size)Bootable Code Generation
Related
Compiler integration
Runtime Integration
Flash Programming
Command Integration
Related Issues
🤖 Generated with Claude Code