xgopilot
022ba1c067
refactor(runtime): combine two if cases in methods() function
...
Simplified the methods() function in z_face.go by combining two
if statements that both return u.Methods() into a single condition
using logical OR operator.
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: luoliwoshang <51194195+luoliwoshang@users.noreply.github.com >
2025-10-31 02:28:17 +00:00
xgopilot
a3a7876d16
chore: regenerate out.ll files with updated llgen
...
Regenerated all out.ll files after reinstalling llgen to fix TestFromTestrt and TestFromTestgo test failures.
Updated files:
- cl/_testgo/equal/out.ll
- cl/_testrt/asmfull/out.ll
- cl/_testrt/makemap/out.ll
- cl/_testrt/tpmap/out.ll
The changes correctly update interface PkgPath from specific package paths to empty strings (zeroinitializer) for interfaces with only exported methods, which aligns with the fix in PR #1380 for issue #1370 .
🤖 Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: luoliwoshang <51194195+luoliwoshang@users.noreply.github.com >
2025-10-30 09:49:51 +00:00
xgopilot
eb0fa2e107
fix(ssa): revert unnecessary formatting changes
...
Reverted two unnecessary formatting changes based on code review:
- ssa/interface.go: Restored single-line format for val function
- ssa/abitype.go: Moved pkg variable declaration back to original position
These changes don't affect functionality, just code formatting.
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: luoliwoshang <51194195+luoliwoshang@users.noreply.github.com >
2025-10-30 08:06:40 +00:00
xgopilot
210d8858d5
chore: regenerate out.ll files with llgen after interface changes
...
Regenerated all out.ll test files using llgen after the interface
metadata changes. The updated files now reflect:
- Anonymous interfaces use empty PkgPath (zeroinitializer)
- Anonymous interface types have unique identifiers
- Runtime correctly handles empty PkgPath for method visibility
Files regenerated:
- cl/_testgo/errors/out.ll
- cl/_testgo/ifaceconv/out.ll
- cl/_testgo/ifaceprom/out.ll
- cl/_testgo/interface/out.ll
- cl/_testgo/interface1370/out.ll
- cl/_testgo/invoke/out.ll
- cl/_testgo/reader/out.ll
- cl/_testgo/reflect/out.ll
- cl/_testgo/tpinst/out.ll
- cl/_testrt/tpabi/out.ll
- cl/_testrt/tpmethod/out.ll
- cl/_testrt/vamethod/out.ll
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: luoliwoshang <51194195+luoliwoshang@users.noreply.github.com >
2025-10-30 07:53:06 +00:00
xgopilot
79bf753c0e
fix(ssa): use empty PkgPath for anonymous interfaces
...
Based on meeting discussion, this commit reverts the previous approach
of extracting PkgPath from interface methods. Instead, anonymous
interfaces now use an empty PkgPath string, and the runtime's methods()
function handles empty PkgPath by returning all methods.
Changes:
- Reverted unsafeInterface() to remove originType parameter
- Set anonymous interface PkgPath to empty string in abitype.go:202
- Added early return in methods() in z_face.go for empty PkgPath
- All call sites of unsafeInterface() updated to pass rawIntf directly
This approach is cleaner because anonymous interfaces don't belong to
any package, and the compiler already guarantees safety for cross-package
private method access.
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
Co-authored-by: luoliwoshang <51194195+luoliwoshang@users.noreply.github.com >
2025-10-30 07:33:20 +00:00
xgopilot
88d32c9930
fix(ssa): correct PkgPath for interface metadata in cross-package conversions
...
Fixes #1370 - Segmentation Fault When Calling Interface Private Methods Cross-Package
This commit fixes a critical bug where interface metadata's PkgPath was incorrectly
set when converting concrete type pointers to interfaces with private methods across
package boundaries.
Problem:
- When a concrete type pointer was converted to an interface with private methods
in a package different from the interface definition package, the compiler
incorrectly set the interface metadata's PkgPath to the current compilation
package instead of the interface definition package
- This caused the runtime to only fill exported methods in the itab, leaving
private method slots as NULL (0x0), resulting in segmentation faults
Solution:
- Modified abiInterfaceOf() in ssa/abitype.go to extract the package path from
the interface's private methods (if any)
- Use that package path instead of the current compilation package path
- Fall back to current package path only if all methods are exported
Changes:
- ssa/abitype.go: Use abi.PathOf() to get correct package path
- ssa/interface.go: Refactor to simplify interface type handling
- Added comprehensive test cases and demos for go/types, go/token, and go/ast
- Updated all test outputs to reflect correct interface metadata generation
This fix resolves segmentation faults when using Go standard library interfaces
and user-defined interfaces with private methods across package boundaries.
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: luoliwoshang <51194195+luoliwoshang@users.noreply.github.com >
2025-10-30 06:24:23 +00:00
xushiwei
d2a22252c2
Merge pull request #1342 from goplus/dependabot/github_actions/actions/setup-node-6
...
chore(deps): bump actions/setup-node from 5 to 6
2025-10-16 08:49:12 +08:00
xushiwei
58352e3ee4
Merge pull request #1345 from goplus/xgopilot/claude/issue-1344-1760494923
...
docs: add hash/maphash to README with partial support status
2025-10-16 08:48:02 +08:00
xushiwei
325e9a93b5
Merge pull request #1347 from cpunion/feature/tls-gc
...
tls: add gc-aware pthread slots
2025-10-16 08:10:53 +08:00
Li Jie
00dd09c7f4
ssa: improve hasTypeParam coverage
2025-10-15 13:51:16 +08:00
Li Jie
1ed418e77e
tls: document package and guard helpers
2025-10-15 13:11:35 +08:00
Li Jie
2110db7263
tls: add gc-aware pthread slots
2025-10-15 12:21:51 +08:00
xgopilot
27efaa2eda
docs: add hash/maphash to README with partial support status
...
Update README to reflect that hash/maphash package has been mostly
implemented and verified by adding it to the Go packages support
section with "(partially)" status.
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: luoliwoshang <luoliwoshang@users.noreply.github.com >
2025-10-15 02:23:46 +00:00
dependabot[bot]
355ff1009d
chore(deps): bump actions/setup-node from 5 to 6
...
Bumps [actions/setup-node](https://github.com/actions/setup-node ) from 5 to 6.
- [Release notes](https://github.com/actions/setup-node/releases )
- [Commits](https://github.com/actions/setup-node/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: actions/setup-node
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-10-15 00:13:38 +00:00
xushiwei
e03f4dacfb
Merge pull request #1339 from goplus/xgopilot/claude/issue-1338-1760425043
...
fix: add runtime.rand and runtime.memhash for hash/maphash support
2025-10-15 06:41:39 +08:00
xushiwei
75fa863da2
Merge pull request #1336 from goplus/xgopilot/claude/issue-1335-1760330027
...
Add CLAUDE.md: AI Assistant Guide
2025-10-15 06:34:15 +08:00
xushiwei
18ef7200bc
Merge pull request #1341 from luoliwoshang/fix-ci-duplicate-runs
...
ci: prevent duplicate workflow runs for xgopilot branches
2025-10-15 06:30:59 +08:00
luoliwoshang
bf05779f2f
ci: prevent duplicate workflow runs for xgopilot branches
...
Add !xgopilot/** exclusion pattern to all workflow trigger configurations,
matching the existing dependabot pattern. This ensures that xgopilot branches
only trigger CI checks on pull_request events, eliminating redundant push
event triggers.
Fixes #1340
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-10-14 19:00:47 +08:00
xgopilot
2b92b527e1
fix: resolve compilation errors in maphash demo
...
- Fix line 67: Change unused variable 'n' to blank identifier '_'
- Fix line 102: Correct WriteByte call to expect only error return value
(WriteByte returns only error, not (int, error))
These fixes resolve the compilation errors reported by the CI.
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: luoliwoshang <luoliwoshang@users.noreply.github.com >
2025-10-14 10:33:30 +00:00
xgopilot
ed3176a6cc
test: expand maphash demo with comprehensive API coverage
...
- Add tests for all major hash/maphash public APIs:
* Hash basics (WriteString, Sum64, Reset)
* MakeSeed and SetSeed functionality
* Write methods (Write, WriteByte, WriteString)
* Bytes and String convenience functions
- Use panic() for unexpected errors instead of silent failures
- Add proper error checking and validation
- Document Comparable/WriteComparable limitations in overlay
Note: Comparable() and WriteComparable() are not yet supported and will
panic with 'intrinsic' error as they require runtime intrinsic support.
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: luoliwoshang <luoliwoshang@users.noreply.github.com >
2025-10-14 10:18:28 +00:00
xgopilot
e5ebc32583
fix: add randUint64 wrapper for Go 1.21 compatibility
...
Implement randUint64() directly in the maphash overlay to ensure compatibility
across Go versions. Go 1.21's randUint64() calls runtime.fastrand64, while
Go 1.22+ calls runtime.rand. The wrapper function bridges to llgo's fastrand64
implementation, avoiding undefined symbol errors on Go 1.21.
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: luoliwoshang <luoliwoshang@users.noreply.github.com >
2025-10-14 09:19:55 +00:00
xgopilot
3ce198f103
fix: remove llgo:skipall directive from maphash overlay
...
The llgo:skipall directive was preventing fallback to the standard library,
causing undefined symbol errors for functions like WriteString, MakeSeed, etc.
The overlay now only defines the two linkname functions, allowing typepatch
to handle the rest.
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: luoliwoshang <luoliwoshang@users.noreply.github.com >
2025-10-14 08:29:26 +00:00
xgopilot
e05c91530e
refactor: move hash/maphash linkname bindings to maphash package
...
Move runtime_rand and runtime_memhash linkname declarations from
runtime/internal/lib/runtime/runtime.go to runtime/internal/lib/hash/maphash/maphash.go
to avoid polluting the runtime package namespace.
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: luoliwoshang <luoliwoshang@users.noreply.github.com >
2025-10-14 08:01:10 +00:00
xgopilot
8aadfde64a
style: apply linter fixes to maphash test
...
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: luoliwoshang <luoliwoshang@users.noreply.github.com >
Co-authored-by: xgopilot <noreply@goplus.org >
2025-10-14 07:11:42 +00:00
xgopilot
441b4b15a8
test: add hash/maphash demo test case
...
Add test case in _demo/go/maphash to verify hash/maphash functionality
with the new runtime.rand and runtime.memhash support.
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: luoliwoshang <luoliwoshang@users.noreply.github.com >
Co-authored-by: xgopilot <noreply@goplus.org >
2025-10-14 07:11:17 +00:00
xgopilot
cf6cc937ef
fix: add runtime.rand and runtime.memhash for hash/maphash support
...
- Register hash/maphash in hasAltPkg map in runtime/build.go
- Add rand() function that bridges to fastrand64() in runtime overlay
- Add memhash() function that bridges to internal memhash() in runtime overlay
- Fixes issue where hash/maphash package failed with undefined symbols
Fixes #1338
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: luoliwoshang <luoliwoshang@users.noreply.github.com >
Co-authored-by: xgopilot <noreply@goplus.org >
2025-10-14 07:04:42 +00:00
xgopilot
391e09a407
docs: migrate all build commands to Common Development Tasks
...
- Add 'Build llgo command specifically' and 'Check llgo version' commands
- Consolidate all build-related commands in one section
- Reduce redundancy by having single section for development tasks
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: xgopilot <noreply@goplus.org >
2025-10-13 08:07:23 +00:00
xgopilot
d6f45c67fb
docs: merge Testing and Validation into single section
...
- Move Build Commands into Common Development Tasks section
- Remove duplicate Validation Workflow section
- Simplify document structure by consolidating build commands
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: xgopilot <noreply@goplus.org >
2025-10-13 08:05:56 +00:00
xgopilot
62198a59ba
docs: add descriptive instructions to Code Quality section
...
- Add requirement to run formatting before submitting code updates
- Emphasize that go fmt must be run before committing changes
- Clarify that formatting ensures consistent code formatting
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: xgopilot <noreply@goplus.org >
2025-10-13 07:53:12 +00:00
xgopilot
00d5aad528
docs: remove duplicate validation section from CLAUDE.md
...
- Remove 'Validated Commands and Expected Outputs' section (lines 71-95)
- This information is already covered in 'Validation Workflow' section
- Reduces redundancy and improves document clarity
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: xgopilot <noreply@goplus.org >
2025-10-13 07:45:24 +00:00
xgopilot
72602d606d
docs: address review feedback on CLAUDE.md
...
- Move demo examples to Project Structure with simplified descriptions
- Change 'Test a simple example' to focus on writing and running test cases
- Remove standalone Running Examples section to reduce redundancy
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: xgopilot <noreply@goplus.org >
2025-10-13 07:36:11 +00:00
xgopilot
a99f3d9409
docs: refactor Important Notes with clear workflow and requirements
...
- Add clear 'Validation Workflow' section with numbered steps
- Create prominent 'LLGO_ROOT Environment Variable' section
- Add requirement: All bug fixes/features MUST include tests
- Reorganize Important Notes for better clarity
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: xgopilot <noreply@goplus.org >
2025-10-13 07:16:39 +00:00
xgopilot
1edd4b863e
docs: merge Testing and Validation into single section
...
- Combines Testing and Validation sections for better organization
- Emphasizes these steps are essential when fixing bugs or implementing features
- Maintains all validation information with clearer structure
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: xgopilot <noreply@goplus.org >
2025-10-13 06:52:02 +00:00
xgopilot
c7e3408782
docs: simplify CLAUDE.md per review feedback
...
- Link Development Environment section to README to avoid redundancy
- Remove 'Verified Environment' subsection
- Remove 'Build pydump' section as not needed for current doc
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: xgopilot <noreply@goplus.org >
2025-10-13 06:39:52 +00:00
xgopilot
f65072d997
docs: address review feedback on CLAUDE.md
...
- Update _cmptest/ description to clarify its purpose
- Remove scattered 'Verified output' sections
- Consolidate all validation information into unified Validation section
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: xgopilot <noreply@goplus.org >
2025-10-13 06:16:41 +00:00
xgopilot
cadafde540
Merge pull request #1333 from goplus/dependabot/go_modules/github.com/goplus/gogen-1.19.3
...
chore(deps): bump github.com/goplus/gogen from 1.19.2 to 1.19.3
2025-10-13 04:40:16 +00:00
xushiwei
7e1abf1486
Merge pull request #1333 from goplus/dependabot/go_modules/github.com/goplus/gogen-1.19.3
...
chore(deps): bump github.com/goplus/gogen from 1.19.2 to 1.19.3
2025-10-12 09:42:42 +08:00
dependabot[bot]
cf55925ff5
chore(deps): bump github.com/goplus/gogen from 1.19.2 to 1.19.3
...
Bumps [github.com/goplus/gogen](https://github.com/goplus/gogen ) from 1.19.2 to 1.19.3.
- [Release notes](https://github.com/goplus/gogen/releases )
- [Commits](https://github.com/goplus/gogen/compare/v1.19.2...v1.19.3 )
---
updated-dependencies:
- dependency-name: github.com/goplus/gogen
dependency-version: 1.19.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-10-10 00:12:17 +00:00
xushiwei
dba7bd498f
Merge pull request #1325 from luoliwoshang/ci/rmllvm
...
ci/gorelease:remove reduant llvm download
2025-09-27 06:15:03 +08:00
luoliwoshang
8ce0574b9e
Merge remote-tracking branch 'upstream/main' into ci/rmllvm
2025-09-26 17:07:10 +08:00
luoliwoshang
dd4cf69e25
Merge remote-tracking branch 'upstream/main' into ci/rmllvm
2025-09-26 17:01:47 +08:00
xushiwei
1ee4da9851
Merge pull request #1320 from aofei/ci
...
chore(ci): migrate from `macos-13` to `macos-15-intel` runner
2025-09-26 16:57:46 +08:00
xushiwei
9e1b321ce6
Merge pull request #1308 from visualfc/cabi_riscv
...
internal/cabi: support risc-v specific target-abi
2025-09-26 16:30:43 +08:00
xushiwei
b52caefebd
Merge pull request #1327 from visualfc/fixabi
...
ssa: fix abiTupleOf
2025-09-26 16:26:24 +08:00
xushiwei
0c63138ccd
Merge pull request #1328 from visualfc/reflect
...
runtime/internal/lib/reflect: fix Field closure kind to func
2025-09-26 16:25:08 +08:00
xushiwei
f40da557af
Merge pull request #1323 from visualfc/big
...
runtime: math/big use math_big_pure_go
2025-09-26 16:20:31 +08:00
xushiwei
0e28ac7ce4
Merge pull request #1329 from luoliwoshang/ci/link-python
...
ci:fix brew python & update macos-13 -> macos-15
2025-09-26 16:14:12 +08:00
luoliwoshang
4a6331c668
ci:rm unuse llvm download tool
2025-09-26 15:07:01 +08:00
luoliwoshang
036bb858e2
ci:link --overwrite python
2025-09-26 11:58:17 +08:00
luoliwoshang
5e86d1aee2
ci:fix brew python & update macos-13 -> macos-15
2025-09-26 11:29:20 +08:00
xushiwei
c4223df087
Merge pull request #1301 from luoliwoshang/xtensa/o0
...
llgo/embed:compile with `Oz` & link with `-s` for embed target to reduce size
2025-09-26 11:13:22 +08:00
luoliwoshang
4cff9bb0a7
ci:release-build use macos-15-intel instead macos-13 https://github.com/goplus/llgo/pull/1320
2025-09-26 10:51:07 +08:00
visualfc
ccaf59ec62
runtime/internal/lib/reflect: fix Field closure kind to func
2025-09-26 10:27:56 +08:00
luoliwoshang
087696e31b
ci:rm zlib link
2025-09-26 10:23:32 +08:00
visualfc
5592a8fc26
ssa: fix abiTupleOf
2025-09-25 20:16:44 +08:00
luoliwoshang
dc587f684d
ci:restore yml
2025-09-25 18:22:21 +08:00
luoliwoshang
5e6501642d
release:instal zlib
2025-09-25 17:35:02 +08:00
luoliwoshang
5f3c1e2de3
gorelease:/usr/lib/arch -> /lib/arch
2025-09-25 17:21:37 +08:00
luoliwoshang
215bba2472
gorelease:search /usr/lib/arch
2025-09-25 17:02:14 +08:00
luoliwoshang
bcadacdf21
gorelease:target triple
2025-09-25 16:55:00 +08:00
luoliwoshang
c24506b7e9
ci:reset sysroot set
2025-09-25 16:05:20 +08:00
luoliwoshang
1811ca1220
ci:-z
2025-09-25 15:51:14 +08:00
luoliwoshang
f34ccc1b0c
ci:zlib
2025-09-25 15:36:52 +08:00
luoliwoshang
7180f20366
ci:build-essential
2025-09-25 15:24:21 +08:00
luoliwoshang
bb8e81fb9b
ci:rm linux llvm download
2025-09-25 15:02:00 +08:00
luoliwoshang
21e7d62c7d
ci:rm unuse shell decl
2025-09-25 14:46:00 +08:00
luoliwoshang
35e9ffe31e
ci:remove macos llvm download when release
2025-09-25 14:37:29 +08:00
visualfc
62d0ee39de
runtime: math/big use math_big_pure_go
2025-09-24 10:32:57 +08:00
Aofei Sheng
79f404ac88
chore(ci): migrate from macos-13 to macos-15-intel runner
...
GitHub announced the deprecation of the `macos-13` runner image[^1],
which will be completely removed by December 4th, 2025.
This commit migrates all workflows to use `macos-15-intel` runners
following the announcement's recommendation.
This also uses `ubuntu-latest` alias instead of explicit `ubuntu-24.04`.
[^1]: https://github.blog/changelog/2025-09-19-github-actions-macos-13-runner-image-is-closing-down/
Signed-off-by: Aofei Sheng <aofei@aofeisheng.com >
2025-09-22 10:01:20 +08:00
xushiwei
8959c83397
Merge pull request #1302 from MeteorsLiu/move-embdemo
...
chore: move _embdemo to _demo
2025-09-21 11:36:38 +08:00
xushiwei
67a3cb2e7e
Merge pull request #1314 from luoliwoshang/internal/build/genll
...
fix:GenLL flag to correct compile
2025-09-21 11:35:19 +08:00
xushiwei
1195ce9b03
Merge pull request #1318 from visualfc/tpunsafe
...
ssa: impl builtin alignof offsetof
2025-09-21 11:32:52 +08:00
visualfc
7323187f90
ssa: impl builtin alignof offsetof
2025-09-18 21:16:06 +08:00
luoliwoshang
bbcbddfcad
internal/crosscompile:ld -S to ensure emit-reloc correct
2025-09-18 15:45:25 +08:00
luoliwoshang
8fa3819714
internal/crosscompile:ld -s for embed target
2025-09-18 15:22:02 +08:00
luoliwoshang
c562f05b51
fix:GenLL correct compile
2025-09-17 14:17:17 +08:00
luoliwoshang
cc5c1144a7
internal/crosscompile:Oz optimize level for embed target
2025-09-16 16:40:45 +08:00
visualfc
db28648d29
internal/cabi: support riscv64/riscv32 target-abi
2025-09-16 12:42:30 +08:00
Haolan
03e617d902
chore: remove _embdemo
2025-09-15 14:44:55 +08:00
Haolan
e84f859d6c
fix: unexpected string
2025-09-15 11:04:30 +08:00
Haolan
4b2e1e777c
chore: move _embdemo to _demo
2025-09-15 10:57:31 +08:00
xushiwei
18e036568d
Merge pull request #1299 from MeteorsLiu/fix-export-check-ci
...
ci: fix clite init() causing linting failure
2025-09-15 09:17:15 +08:00
Haolan
e4f77f00a6
ci: fix clite init() causing linting failure
2025-09-14 23:06:09 +08:00
visualfc
8bfe133bee
internal/cabi: support target esp32c3
2025-09-14 20:50:13 +08:00
xushiwei
897f944760
Merge pull request #1296 from visualfc/cabi_esp32
...
internal/cabi: support target esp32
2025-09-14 10:32:20 +08:00
xushiwei
a202b484a9
Merge pull request #1285 from cpunion/impl-build-mode
...
Implement llgo build mode support
2025-09-14 10:30:47 +08:00
xushiwei
17dfdd38c2
Merge pull request #1283 from cpunion/reorganize-demos
...
reorganize: consolidate demo directories
2025-09-14 10:26:45 +08:00
xushiwei
30a3e73d4f
Merge pull request #1268 from MeteorsLiu/emb-runtime
...
fix(runtime): go runtime when building in baremetal environment
2025-09-14 10:26:02 +08:00
visualfc
6170c1dcb9
internal/cabi: support target esp32
2025-09-12 11:16:25 +08:00
Li Jie
cc65ee18b5
full test params passing of exported functions
2025-09-12 10:08:01 +08:00
Li Jie
50d1d2e19a
remove duplicated return
2025-09-11 15:02:45 +08:00
Li Jie
c3b674d804
add export demo and test
2025-09-11 14:08:52 +08:00
Li Jie
3605eeeef7
export c header file for build library
2025-09-11 14:07:58 +08:00
Li Jie
729e5772a0
process //export with initLink
2025-09-11 08:53:17 +08:00
Li Jie
a2742a9de4
set buildmode to exe for non-build mode
2025-09-11 08:53:17 +08:00
Li Jie
68947bfc1f
Fix library mode linking by optimizing genMainModuleFile
...
- For library modes (c-archive, c-shared), only generate minimal code with __llgo_argc/__llgo_argv globals
- For executable mode, generate full main function with runtime initialization
- This fixes undefined symbol errors when linking libraries that reference these globals
2025-09-11 08:53:17 +08:00
Li Jie
e05c8b9f46
Implement llgo build mode support ( #1197 )
...
- Add BuildMode type with three build modes: exe, c-archive, c-shared
- Restrict buildmode flag to llgo build command only (not run/install/test)
- Implement build mode specific linker arguments:
- c-shared: use -shared -fPIC flags
- c-archive: use ar tool to create static archive
- exe: default executable mode
- Add normalizeOutputPath function for platform-specific file naming conventions
- Generate C header files for library modes
- Fix buildmode flag conflict by removing from PassArgs
- Add comprehensive test coverage for all build modes
- Resolve duplicate logic between defaultAppExt and normalizeOutputPath
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-11 08:53:17 +08:00
Haolan
dc59333657
test: remove chinses commets
2025-09-10 17:05:38 +08:00
Haolan
c50395b2b9
test: add esp32 libc and rt test
2025-09-10 17:03:05 +08:00
Haolan
a1d7417684
chore: remove unused file
2025-09-10 14:15:22 +08:00
Haolan
0bbdb6c204
fix: change clite's LLGoPackage to true to execute its init()
2025-09-10 14:14:22 +08:00
Haolan
0ed3a54244
Merge branch 'main' of https://github.com/goplus/llgo into emb-runtime
2025-09-10 14:06:06 +08:00
xushiwei
d5ad4d997d
Merge pull request #1272 from visualfc/cabi_opt
...
internal/cabi: call optimization
2025-09-10 13:49:48 +08:00
Haolan
3cc8fd1c91
Merge branch 'main' of https://github.com/goplus/llgo into emb-runtime
2025-09-10 13:49:19 +08:00
xushiwei
d0962d8adc
Merge pull request #1264 from MeteorsLiu/libc-version
...
Fix xtensa newlib `stdio` stuck and support libc version
2025-09-10 13:46:36 +08:00
xushiwei
d7b9968d9a
Merge pull request #1253 from luoliwoshang/release/esp-clang
...
release:compile & release with esp clang/llvm
2025-09-10 13:40:12 +08:00
xushiwei
b72311cd6d
Merge pull request #1275 from luoliwoshang/update/clang
...
internal/crosscompile:update clang with older glibc & more small size
2025-09-10 13:38:00 +08:00
Haolan
073e79d03b
chore: rename ArchiveSrcDir
2025-09-10 11:47:02 +08:00
visualfc
dd50d4dff0
internal/cabi: option optimize
2025-09-09 21:10:53 +08:00
visualfc
b6d43ae88a
internal/cabi: transformFuncBody check AttrWidthType(2)
2025-09-09 21:04:24 +08:00
visualfc
89e93f9e7a
internal/cabi: transformCallInstr check AttrPointer
2025-09-09 21:04:24 +08:00
visualfc
0b6a558667
internal/cbi: replaceParamAlloc
2025-09-09 21:04:24 +08:00
visualfc
937f8339c7
internal/cabi: call optimization
2025-09-09 21:04:24 +08:00
luoliwoshang
a17f1f0bb0
set origin test
...
avoid transform
2025-09-09 19:05:26 +08:00
Haolan
8ce6c3b9ab
chore: fix commets and format
...
Update internal/crosscompile/compile/rtlib/rt_test.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Update internal/crosscompile/compile/libc/libc_test.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Update internal/crosscompile/compile/libc/libc_test.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
chore: format contents
2025-09-09 18:23:31 +08:00
Haolan
d4474be921
chore: fix some wrong commets
2025-09-09 18:23:31 +08:00
Haolan
6aa63121ff
chore: upgrade newlib
2025-09-09 18:23:31 +08:00
Haolan
b239494a9f
test: add test for getting config
2025-09-09 18:23:31 +08:00
Haolan
f573ebe40b
fix: xtensa stdio
2025-09-09 18:23:31 +08:00
Haolan
95bd495d7b
feat: support libc version
2025-09-09 18:23:31 +08:00
xushiwei
b1d95bb73c
Merge pull request #1284 from visualfc/valist_demo
...
cl/_testrt/vamethod: optimize code
2025-09-09 17:29:38 +08:00
visualfc
5dbf1a7561
cl/_testrt/vamethod: optimize code
2025-09-09 17:25:22 +08:00
xushiwei
0dbc686960
Merge pull request #1281 from goplus/dependabot/github_actions/actions/setup-go-6
...
build(deps): bump actions/setup-go from 5 to 6
2025-09-09 17:19:39 +08:00
xushiwei
4e7526d68e
Merge pull request #1282 from visualfc/embed_vamethod
...
cl: embed struct / interface support __llgo_va_list
2025-09-09 17:19:16 +08:00
visualfc
fd17a43ade
cl: interface support __llgo_va_list
2025-09-09 16:51:08 +08:00
visualfc
89af430329
cl: embed struct support __llgo_va_list
2025-09-09 16:14:25 +08:00
Li Jie
64df39b3c5
reorganize: consolidate demo directories
...
- Consolidate _demo, _pydemo, _embdemo into single _demo directory structure
- Organize demos by language: _demo/{go,py,c,embed}/
- Categorize demos based on imports:
- Python library demos (py imports) → _demo/py/
- C/C++ library demos (c/cpp imports) → _demo/c/
- Go-specific demos → _demo/go/
- Embedded demos → _demo/embed/
- Move C-related demos (asm*, cabi*, cgo*, linkname, targetsbuild) from go/ to c/
- Update all path references in README.md and GitHub workflows
- Improve demo organization and navigation as requested in #1256
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-09 15:06:55 +08:00
luoliwoshang
e63ebb8151
goreleaser:avoid fail
2025-09-09 15:05:52 +08:00
luoliwoshang
7907e69719
Merge remote-tracking branch 'upstream/main' into release/esp-clang
2025-09-09 14:26:42 +08:00
xushiwei
849b23079b
Merge pull request #1279 from luoliwoshang/ci/refreshCacheKey
...
ci:update .sysroot cache key & catch docker exit
2025-09-09 14:12:48 +08:00
luoliwoshang
3be12dce44
ci:test helloword with embed target
2025-09-09 13:44:56 +08:00
luoliwoshang
f66bbb7fc3
execute rpath search
2025-09-09 12:52:26 +08:00
luoliwoshang
9f48753203
allow sysroot
2025-09-09 12:34:36 +08:00
luoliwoshang
e05f890b94
temp remove origin rpath set
2025-09-09 12:25:39 +08:00
luoliwoshang
d0cf57fa95
ci:test release without llvm dependency
2025-09-09 12:10:14 +08:00
luoliwoshang
92beb562bf
goreleaser:relative rpath
2025-09-09 11:57:38 +08:00
luoliwoshang
6ce28e4d4e
goreleaser:keep file level
2025-09-09 11:36:29 +08:00
luoliwoshang
0340ef2a75
goreleaser:move clang to result
2025-09-09 11:06:55 +08:00
luoliwoshang
68623f0b27
env:find crosscompile llvm
2025-09-09 10:22:43 +08:00
luoliwoshang
13b5f39125
ci:fail when docker start error
2025-09-09 09:52:22 +08:00
dependabot[bot]
2a022be510
build(deps): bump actions/setup-go from 5 to 6
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 5 to 6.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-09-09 00:44:54 +00:00
luoliwoshang
848432ea68
ci:sysroot for linux
2025-09-08 22:53:39 +08:00
luoliwoshang
a19011897c
install with esp-clang & new cache key
2025-09-08 22:52:51 +08:00
luoliwoshang
9cea3226db
ci:fail when docker start error
2025-09-08 19:07:12 +08:00
luoliwoshang
bb89ef5c5d
ci:refresh ci .sysroot cache key
2025-09-08 17:44:46 +08:00
Haolan
b39f0aa4bf
Merge branch 'main' of https://github.com/goplus/llgo into emb-runtime
2025-09-08 16:03:52 +08:00
xushiwei
1556b29e0a
Merge pull request #1271 from cpunion/embed-cmds
...
Embed cmds
2025-09-08 16:00:08 +08:00
Li Jie
d46a3f2f49
Merge commit '7de4137d4678a3bcbd735f887028489f97f1e479' into embed-cmds
...
# Conflicts:
# internal/build/build.go
2025-09-08 15:22:48 +08:00
xushiwei
7de4137d46
Merge pull request #1261 from goplus/dependabot/go_modules/github.com/goplus/gogen-1.19.2
...
build(deps): bump github.com/goplus/gogen from 1.19.1 to 1.19.2
2025-09-08 14:43:53 +08:00
xushiwei
16b3473f52
Merge pull request #1274 from luoliwoshang/fix/ldl
...
fix:ldflags -ldl for earlier glibc version
2025-09-08 14:43:15 +08:00
xushiwei
1f7883654a
Merge pull request #1269 from luoliwoshang/ci/dependbot
...
ci:avoid dependbot trigger reduant push event
2025-09-08 14:42:30 +08:00
xushiwei
fb94329c87
Merge pull request #1259 from luoliwoshang/test/refine
...
CI: Release Testing
2025-09-08 14:40:20 +08:00
xushiwei
2f3c322076
Merge pull request #1233 from cpunion/optional-esp-clang
...
Optional esp clang
2025-09-08 14:38:25 +08:00
luoliwoshang
922d174402
fix yml conflict
2025-09-08 14:33:40 +08:00
Haolan
d9a20e8000
fix: stdio and typo
2025-09-08 14:13:25 +08:00
luoliwoshang
d2a021ceae
test:with esp-clang version
2025-09-08 10:02:27 +08:00
luoliwoshang
66bf801fd6
internal/crosscompile:update clang with older glibc & more same size
2025-09-08 09:40:43 +08:00
Li Jie
20ce823b68
fix: targets tests
2025-09-07 16:37:42 +08:00
Li Jie
3ecf9b35f3
refine: safe shell cmd line parse
2025-09-07 16:37:38 +08:00
Li Jie
dba719a8d7
doc: update embeded doc of llgo cmds
2025-09-07 16:37:38 +08:00
Li Jie
806b16c2c8
refine: reduce duplicated env expand funcs
2025-09-07 16:37:38 +08:00
Li Jie
9eeb14ae31
feat: support generic bin and intel hex firmware
2025-09-07 16:37:37 +08:00
Li Jie
df07513a37
refine: reduce unnecessary format conversion
2025-09-07 16:37:34 +08:00
Li Jie
16c8402065
refactor: multi format generation and llgo build flags
2025-09-07 16:23:31 +08:00
Li Jie
c0afe199c2
refactor: move device types definition into flash
2025-09-07 16:23:31 +08:00
Li Jie
1c2aea10f0
feat: add Arduino 1200bps reset support before flashing
...
- Add touchSerialPortAt1200bps function from TinyGo for Arduino bootloader reset
- Update Flash function to trigger 1200bps reset when flash-1200-bps-reset is true
- Add 2-second wait after reset for device to enter bootloader mode
- Support retry mechanism with Windows-specific error handling
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-07 16:23:31 +08:00
Li Jie
4e590d42be
feat: auto guess port for monitoring
2025-09-07 16:23:30 +08:00
Li Jie
228d7cee31
feat: make -port optional
2025-09-07 16:23:30 +08:00
Li Jie
c6676917b3
refine: check msd paths
2025-09-07 16:23:30 +08:00
Li Jie
88e0844ada
ignore codecov from internal/{monitor,flash}
2025-09-07 16:23:30 +08:00
Li Jie
a2c9c7f10a
feat: llgo run -target target -port port auto start monitor
2025-09-07 16:23:30 +08:00
Li Jie
9a5b231c88
feat: llgo monitor -target target -port port
2025-09-07 16:23:27 +08:00
Li Jie
519faabfe1
feat: ignore firmware files
2025-09-06 20:54:39 +08:00
Li Jie
1a3bca40bc
feat: implement flash functionality
2025-09-06 20:53:28 +08:00
Li Jie
549beeb101
test output format for all target/emuator/flash-method
2025-09-06 19:46:33 +08:00
Li Jie
7cad146013
refactor build/install/run pipeline
2025-09-06 19:45:48 +08:00
luoliwoshang
054591c279
fix:ldflags -ldl for earlier glibc version
2025-09-06 18:56:58 +08:00
Li Jie
da9865104f
export flash, openocd, msd
2025-09-06 16:21:15 +08:00
Li Jie
1033452e8f
extract run from linkMainPkg, add flash scaffold
2025-09-06 16:16:04 +08:00
luoliwoshang
82ed8468e7
ci:avoid dependbot trigger reduant push event
2025-09-06 10:57:16 +08:00
Li Jie
5e5d5c2a83
Build and run for embeded
2025-09-06 10:35:58 +08:00
Li Jie
df8f67db5a
remove debug log
2025-09-06 10:35:58 +08:00
Li Jie
e9170e4cef
feat: add -file-format flag for flexible output formats
...
Add support for -file-format flag to llgo build command allowing users to specify output format independently of target configuration.
Changes:
- Add -file-format flag supporting bin, hex, elf, uf2, zip formats
- Implement two-stage conversion: firmware format → file format
- Add ConvertOutput function with hex format conversion support
- Update build logic to handle different modes (build vs run/install)
- Add verbose logging for conversion operations
For build command: only convert firmware when -file-format is specified
For run/install commands: always convert firmware when target requires it
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-06 10:35:58 +08:00
xushiwei
f41badde20
Merge pull request #1266 from goplus/dependabot/github_actions/actions/setup-node-5
...
build(deps): bump actions/setup-node from 4 to 5
2025-09-06 10:14:00 +08:00
xushiwei
ac753070fa
Merge pull request #1267 from goplus/dependabot/github_actions/actions/setup-go-6
...
build(deps): bump actions/setup-go from 5 to 6
2025-09-06 10:13:02 +08:00
xushiwei
e6768584d7
Merge pull request #1263 from luoliwoshang/ci/cancel-before
...
ci:concurrency config added & timeout at 30min
2025-09-06 10:12:21 +08:00
Haolan
7ca8abc788
fix: println
2025-09-05 19:00:53 +08:00
Haolan
e444c4b6ac
fix: typo
2025-09-05 16:55:38 +08:00
Haolan
0d02a7273e
fix: rethrow in baremental
2025-09-05 16:41:58 +08:00
Haolan
0c418073b3
revert unix
2025-09-05 16:29:58 +08:00
Haolan
2d1120bf69
fix: symbol not found when building in baremental environment
2025-09-05 16:27:38 +08:00
luoliwoshang
22c26c1aaa
ci:every job settimeout 30min
2025-09-05 11:26:29 +08:00
dependabot[bot]
c97d541936
build(deps): bump actions/setup-go from 5 to 6
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 5 to 6.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-09-05 00:11:41 +00:00
dependabot[bot]
f6bb1d9922
build(deps): bump actions/setup-node from 4 to 5
...
Bumps [actions/setup-node](https://github.com/actions/setup-node ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-node/releases )
- [Commits](https://github.com/actions/setup-node/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/setup-node
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-09-05 00:11:37 +00:00
luoliwoshang
7ae6686f6b
ci:concurrency config added
2025-09-04 19:09:30 +08:00
luoliwoshang
5a602830a6
ci(release test):restore other ci
2025-09-04 17:36:36 +08:00
luoliwoshang
00dbc91745
ci(release test):cache with sh & gh yml
2025-09-04 17:07:55 +08:00
luoliwoshang
1684512308
ci(release test):cache key to env
2025-09-04 16:49:10 +08:00
luoliwoshang
40b142f947
ci(release test):hello check cpp & todo build
2025-09-04 15:36:06 +08:00
luoliwoshang
e5c86fe936
ci(release test):lookup cache
2025-09-04 14:41:46 +08:00
luoliwoshang
9d7664373e
ci(release test):setup releaser
2025-09-04 14:32:05 +08:00
luoliwoshang
825f0bd83f
ci(release test):cache linux & set qemu
2025-09-04 11:12:55 +08:00
luoliwoshang
bedb454427
ci(release test):cache linux & check file
2025-09-04 10:43:32 +08:00
dependabot[bot]
a9f74b7e55
build(deps): bump github.com/goplus/gogen from 1.19.1 to 1.19.2
...
Bumps [github.com/goplus/gogen](https://github.com/goplus/gogen ) from 1.19.1 to 1.19.2.
- [Release notes](https://github.com/goplus/gogen/releases )
- [Commits](https://github.com/goplus/gogen/compare/v1.19.1...v1.19.2 )
---
updated-dependencies:
- dependency-name: github.com/goplus/gogen
dependency-version: 1.19.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-09-03 22:16:23 +00:00
luoliwoshang
002a68009e
ci(release test):cache macos
2025-09-03 22:17:31 +08:00
luoliwoshang
23b5e77dcc
ci(release test):test cache macos tarball
2025-09-03 21:33:35 +08:00
luoliwoshang
b8b0ae00d0
ci(release test):revert to cache linux
2025-09-03 20:48:16 +08:00
luoliwoshang
b58cce09ab
ci(release test):cache with tar -xzvf
2025-09-03 20:20:14 +08:00
luoliwoshang
a1f9afc88f
debug
2025-09-03 20:00:14 +08:00
luoliwoshang
6ba182afc7
ci(release test):output sysroot
2025-09-03 19:34:56 +08:00
luoliwoshang
da319e2a7c
ci(release test):use cache .sysroot both for test & release
2025-09-03 19:11:37 +08:00
luoliwoshang
5e32a15146
ci(release test):set go dep
2025-09-03 18:21:30 +08:00
luoliwoshang
07d69295b9
ci(release test):test with hello
2025-09-03 18:07:50 +08:00
luoliwoshang
740a260708
ci(release test):with dependency
2025-09-03 17:26:26 +08:00
luoliwoshang
96cd52dccc
ci(release test):use macos13 instead macos-latest-large try to resolve action bug
2025-09-03 17:16:05 +08:00
luoliwoshang
8650952145
ci(release test):with macos/arm macos/amd linux/arm linux/amd
2025-09-03 17:06:51 +08:00
luoliwoshang
58e5f5e4a1
release:check upload
2025-09-03 16:32:25 +08:00
luoliwoshang
7c792e8ca6
release:check artifact
2025-09-03 16:08:51 +08:00
luoliwoshang
d3ded9f861
release:cache .sysroot
2025-09-03 16:03:01 +08:00
luoliwoshang
7f05aa54c2
release:upload goreleaser result to artifact & test it
2025-09-03 15:35:13 +08:00
luoliwoshang
77a7d9e549
release:with --snapshot for release test
2025-09-03 15:04:08 +08:00
luoliwoshang
0ff2d5d931
ci:goreleaser file to artifacts & temp move ci for test
2025-09-03 14:19:48 +08:00
Li Jie
62fc21e22b
Merge commit '6588f36123eababf6e24564b49e5af374285d2b5' into optional-esp-clang
...
# Conflicts:
# internal/crosscompile/crosscompile.go
# internal/crosscompile/crosscompile_test.go
2025-09-03 09:32:38 +08:00
xushiwei
6588f36123
Merge pull request #1246 from MeteorsLiu/esp-libc
...
feat: support libc/compiler-rt for small places
2025-09-03 07:05:51 +08:00
Haolan
977806affc
test: add more libc test
2025-09-02 22:35:08 +08:00
Haolan
dd3c1f923d
test: fix _embdemo write test
2025-09-02 22:25:27 +08:00
Haolan
1bd9ceb444
test: fix _embdemo
2025-09-02 20:06:48 +08:00
Haolan
5a4c83ef85
test: add _embdemo print test
2025-09-02 18:27:59 +08:00
Haolan
82bb6e84d0
test: add rt test
2025-09-02 18:23:28 +08:00
Haolan
b99c073cca
test: add test for compile options
2025-09-02 18:04:35 +08:00
Haolan
4b383b179a
ci: revert
2025-09-02 17:18:25 +08:00
Haolan
a8bc617e18
test: skip llgo test
2025-09-02 17:16:55 +08:00
xushiwei
656a2a43b5
Merge pull request #1247 from goplus/dependabot/go_modules/github.com/goplus/lib-0.3.0
...
build(deps): bump github.com/goplus/lib from 0.2.0 to 0.3.0
2025-09-02 15:15:44 +08:00
xushiwei
7e01f69d7e
Merge pull request #1255 from cpunion/fix-llgo-root-check
...
Check LLGO_ROOT with pkg github.com/goplus/llgo/runtime
2025-09-02 15:15:06 +08:00
Haolan
f875347ad9
test: fix compile test
...
test: add asm test
test: add libc.go test
test: add DownloadAndExtractLibInternalDir test
test: fix checkDownload test
test: fix asm test
fix: check isCompile
fix: remove debug
fix: remove debug
2025-09-02 13:42:23 +08:00
Haolan
1d3ecb287a
fix: export libc cflags for compiler-rt
...
fix: libc include dir
fix: xtensa internal src dir
fix: xtensa internal src dir
fix: ignore wasm target
fix: export libc cflags to global cflags
fix: rtlib libc include dir
fix: ignore some errors for libc
fix: don's search system path for libc
fix: adjust compiling options
ci: add libc
fix: libc cflags
fix: test path
fix: libc cflags
fix: libc cflags
2025-09-02 13:40:42 +08:00
Li Jie
0cac1c8a9d
fix #1252 check LLGO_ROOT with pkg github.com/goplus/llgo/runtime
2025-09-01 20:18:31 +08:00
Haolan
cb2fa5dd2d
fix: picolibc.h
2025-09-01 17:19:32 +08:00
Haolan
5997a296c2
fix: update url
2025-09-01 16:54:12 +08:00
Haolan
96c5ce90e4
fix: compiler rt file path
2025-09-01 16:36:58 +08:00
Haolan
8ecbfe9ade
feat: support arm/risc64/avr for compiler rt
2025-09-01 16:33:19 +08:00
Haolan
012a5d7d69
fix: remove unused file
2025-09-01 14:49:37 +08:00
Haolan
997ea2849b
feat: support riscv32
2025-09-01 14:48:54 +08:00
Haolan
1b3889ebc9
feat: add target name design
2025-08-29 19:25:09 +08:00
Haolan
53e22488c8
fix: remove debug compiler options
2025-08-29 17:54:08 +08:00
Haolan
19ddee0241
test: add compile test
2025-08-29 17:48:34 +08:00
Haolan
61143a6ff0
fix: newlib url and rt url
2025-08-29 16:27:23 +08:00
Haolan
3f2fe83718
fix: check needStart by libc name
2025-08-29 16:02:23 +08:00
Haolan
4639ee13e7
feat: support compiler-rt
2025-08-29 11:30:25 +08:00
dependabot[bot]
5810b29372
build(deps): bump github.com/goplus/lib from 0.2.0 to 0.3.0
...
Bumps [github.com/goplus/lib](https://github.com/goplus/lib ) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/goplus/lib/releases )
- [Commits](https://github.com/goplus/lib/compare/v0.2.0...v0.3.0 )
---
updated-dependencies:
- dependency-name: github.com/goplus/lib
dependency-version: 0.3.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-29 00:12:37 +00:00
Haolan
f3ecce86ee
feat: support libc for small devices
2025-08-28 20:11:13 +08:00
xushiwei
2160710884
Merge pull request #1243 from luoliwoshang/llgo/safesplit
...
xtool/safesplit:properly handle consecutive short flags
2025-08-28 11:50:06 +08:00
xushiwei
71353baf59
Merge pull request #1245 from luoliwoshang/llgo/targetsdir
...
internal/target:read targets consist use LLGoROOT
2025-08-28 11:48:48 +08:00
xushiwei
6144987f06
Merge pull request #1224 from luoliwoshang/instr/asmfull
...
cl(feat): llgo.asm implement tinygo.AsmFull
2025-08-28 11:41:31 +08:00
luoliwoshang
b68686e542
internal/target:read targets use LLGoROOT
2025-08-28 11:12:26 +08:00
luoliwoshang
0935d10edf
xtool/safesplit:properly handle consecutive short flags
2025-08-27 20:25:31 +08:00
xushiwei
fdc7d53904
Merge pull request #1240 from visualfc/readdir
...
runtime/internal/lib/os: fix readdir for darwin-amd64
2025-08-27 17:43:41 +08:00
visualfc
69fe6d6377
runtime/internal/lib/os: fix readdir for darwin-amd64
2025-08-26 22:23:30 +08:00
xushiwei
cf2d1ef9ca
Merge pull request #1234 from visualfc/rpath
...
internal/build: fix warning duplicate -rpath
2025-08-26 13:56:44 +08:00
visualfc
ab57a13eb1
internal/build: fix warning duplicate -rpath
2025-08-26 13:54:15 +08:00
Haolan
5587fd2885
feat: add libc
2025-08-25 19:05:30 +08:00
Li Jie
f361d195f0
clean debug log
2025-08-25 10:52:22 +08:00
Li Jie
11e1348a2c
add force-espclang to force using esp-clang for dev mode
2025-08-24 17:31:57 +08:00
Li Jie
ca30338066
optional use esp clang for non-cross-compilation
2025-08-24 17:28:42 +08:00
xushiwei
e4218f90d7
Merge pull request #1226 from visualfc/alpine
...
doc: alpine 386
2025-08-24 08:43:17 +08:00
xushiwei
3bfedb2588
Merge pull request #1228 from visualfc/dev_check
...
build: dev support checkLinkArgs/CheckLLFiles/GenLLFiles
2025-08-24 08:42:38 +08:00
xushiwei
d87deebbef
Merge pull request #1231 from visualfc/cabi_alloca
...
internal/cabi: fix llvm.alloca for callInsrt
2025-08-24 08:38:02 +08:00
xushiwei
76e4f4ab92
Merge pull request #1203 from cpunion/esp-llvm
...
Build Target Task 2: Multi-Platform LLVM Support and Bootable Code Generation
2025-08-24 08:36:02 +08:00
Li Jie
ddc61adc63
test compiler downloading of crosscompile
2025-08-23 18:33:20 +08:00
Li Jie
96001ce9b1
disable incompatible tests for llgo test
2025-08-23 18:01:16 +08:00
Li Jie
4a02b1f23b
test internal/clang
2025-08-23 17:53:09 +08:00
Li Jie
e40bdc196b
binary-format supports uf2, nrf-dfu
2025-08-23 17:45:20 +08:00
Li Jie
508b23a584
refine and test internal/crosscompile
2025-08-23 17:45:20 +08:00
Li Jie
b7181592a9
hide unused arguments warnings
2025-08-23 17:45:20 +08:00
Li Jie
59e1df5478
don't collect test coverage of internal/firmware
2025-08-23 17:42:34 +08:00
Li Jie
ecaf7c8ac6
supports binary-format, only esp* supported for now
2025-08-22 21:05:29 +08:00
visualfc
cd69092a60
internal/cabi: fix llvm.alloca for callInsrt
2025-08-22 19:16:06 +08:00
luoliwoshang
f3de14da4b
cl/instr:note for why asm not support pointer type:
2025-08-22 16:14:57 +08:00
luoliwoshang
49b9b92790
ci/instr:fix asmFull return type to match function signature when no output
2025-08-22 15:01:59 +08:00
Li Jie
1f193c8533
refine internal/clang: don't depends internal/crosscompile
2025-08-22 09:08:26 +08:00
Li Jie
3ce63965bf
refine build.sh and CI
2025-08-22 08:54:55 +08:00
Li Jie
50d8dbee05
fix targets extra files
2025-08-22 08:43:04 +08:00
Li Jie
c8eb871252
report error if extra file not exist
2025-08-22 08:42:29 +08:00
Li Jie
ad8aa6ac1a
add __dynamic_loader into targetsbuild for nintendo switch
2025-08-22 08:42:01 +08:00
Li Jie
d3d39876d3
report llvm-target/cpu empty warning in all targets check
2025-08-22 07:41:59 +08:00
Li Jie
44cb4f2649
report error if target cpu is not set
2025-08-22 07:40:52 +08:00
Li Jie
d0f89e456c
allow clang unused parameters
2025-08-22 07:40:18 +08:00
Li Jie
90a16e8c90
add handleInterrupt into _demo/targetsbuild
2025-08-22 07:39:18 +08:00
Li Jie
ea6266c79f
add _demo/targetsbuld/build-all.sh to check all targets
2025-08-22 07:09:42 +08:00
Li Jie
077f114373
_demo/empty -> _demo/targetsbuild
2025-08-22 07:09:42 +08:00
Li Jie
2508674227
report target error if llvm-target not set
2025-08-22 07:09:38 +08:00
Li Jie
c9c703dfe6
remove duplicated CCFLSGS args
2025-08-22 06:57:20 +08:00
luoliwoshang
d9dc4d5943
cl/instr:move to one asm
2025-08-21 23:44:46 +08:00
luoliwoshang
04f613dd15
cl/test:asmFull error
2025-08-21 23:44:46 +08:00
luoliwoshang
0faef117ca
cl/instr:refine register collect
2025-08-21 23:44:46 +08:00
luoliwoshang
f6bc5ac538
cl/instr:regexp compile one time
2025-08-21 23:44:46 +08:00
luoliwoshang
26fb156d6b
cl/instr:only permit interger at asmfull
2025-08-21 23:44:46 +08:00
luoliwoshang
d548671b91
test:linux with leaq to confirm asmFull
2025-08-21 23:44:46 +08:00
luoliwoshang
ef1f2bce49
test:linux asmFull function test
2025-08-21 23:44:46 +08:00
luoliwoshang
b428a8af08
test:asmFull function test
2025-08-21 23:44:46 +08:00
luoliwoshang
9dfc6d1d52
ssa:refine asmFull interface
2025-08-21 23:44:46 +08:00
luoliwoshang
6beb50b367
cl/instr:asmFull test case with multiple input & output
2025-08-21 23:44:46 +08:00
luoliwoshang
9e0c50dafe
cl/instr:asmFull test case with input only
2025-08-21 23:44:46 +08:00
luoliwoshang
f5d4f93ed7
ssa:inlineAsmFull
2025-08-21 23:44:46 +08:00
luoliwoshang
ae36ef4a0e
cl/instr:replace register & build constraints
2025-08-21 23:44:46 +08:00
luoliwoshang
485dbe4021
cl/instr:asm with two situation
2025-08-21 23:44:46 +08:00
Li Jie
2f8f85a404
filter out failed targets in ci
2025-08-21 22:20:46 +08:00
Li Jie
87c50cf22a
_demo/empty exports Reset_Handler and handleHardFault (to compatible with tinygo)
2025-08-21 22:18:14 +08:00
Li Jie
6e20a435af
targets supports extra-files
2025-08-21 21:55:42 +08:00
Li Jie
2eb7d542d2
targets supports code-model, target-abi, relocation-model
2025-08-21 20:43:43 +08:00
Li Jie
c414add29f
update targets tests
2025-08-21 19:51:20 +08:00
Li Jie
372a09d2ca
inspired compiler and linker args from tinygo
2025-08-21 18:53:27 +08:00
Li Jie
06568da140
expand template vars in targets config
2025-08-21 18:51:54 +08:00
visualfc
96c7afcf3a
build: dev support checkLinkArgs/CheckLLFiles/GenLLFiles
2025-08-21 17:26:20 +08:00
Li Jie
5cfd996659
fix cross compilation tests
2025-08-21 17:16:29 +08:00
Li Jie
21189f378e
fix libunwind include path
2025-08-21 17:16:29 +08:00
Li Jie
9a90eaed76
fix ldflags
2025-08-21 17:16:28 +08:00
Li Jie
d8122d14aa
fix lld -target
2025-08-21 17:16:28 +08:00
Li Jie
7bf0146e2f
add file lock to avoid parallel downloading
2025-08-21 17:16:25 +08:00
Li Jie
93ca632f7a
fix rpath for libc++
2025-08-21 15:38:56 +08:00
Li Jie
49e5963b0a
Merge commit '6de3bdcdd9b3959d244e7b3b7e97fc4e3408cd78' into esp-llvm
...
# Conflicts:
# internal/build/build.go
2025-08-21 14:19:53 +08:00
Li Jie
7e8df050a1
fix cross compilation
2025-08-21 14:18:37 +08:00
Li Jie
50a2650e67
upgrade to esp-clang prebuilt 19.1.2_20250820
2025-08-21 14:12:57 +08:00
visualfc
1137749980
doc: alpine 386
2025-08-21 12:14:49 +08:00
xushiwei
6de3bdcdd9
Merge pull request #1223 from visualfc/cpuid
...
runtime/internal/lib/internal/cpu: use __cpuid_count
2025-08-21 11:45:34 +08:00
xushiwei
7c4fb8d6f1
Merge pull request #1222 from visualfc/dev
...
llgo flags -abi enable in build tags dev
2025-08-21 11:44:49 +08:00
visualfc
a11a71eb93
llgo flags -abi enable in build tags dev
2025-08-21 11:09:13 +08:00
xushiwei
b8d0a26bdc
Merge pull request #1163 from luoliwoshang/internal/build/rpath
...
internal/build:support relocatable lib
2025-08-21 11:07:13 +08:00
xushiwei
a8432252e1
Merge pull request #1220 from visualfc/cabi
...
internal/cabi: support arch 386
2025-08-21 10:55:43 +08:00
visualfc
56733e1dbd
runtime/internal/lib/internal/cpu: use __cpuid_count
2025-08-20 17:09:02 +08:00
Li Jie
246278ff80
add tinygo device files
2025-08-20 10:27:01 +08:00
Li Jie
1b8b500fd7
add esp-clang download prompts
2025-08-20 10:23:32 +08:00
Li Jie
e8bae52f66
decision _start generation by target, add some fake variables
2025-08-20 08:54:38 +08:00
Li Jie
3431354cb2
refactor clang command
2025-08-20 08:53:36 +08:00
Li Jie
b2b407c2c2
upgrade to prebuilt esp-clang 19.1.2_20250819
2025-08-20 08:53:36 +08:00
luoliwoshang
1d76f515e0
internal/build:support relocatable lib
2025-08-19 22:48:23 +08:00
visualfc
fd0b2ff72d
internal/cabi: support arch 386
2025-08-19 15:01:35 +08:00
xushiwei
cbac24cf97
Merge pull request #1188 from visualfc/cabi
...
cabi transform
2025-08-19 14:56:10 +08:00
xushiwei
ff40a80569
Merge pull request #1211 from luoliwoshang/emb/start
...
fix: set correct argc=0 in _start() function
2025-08-19 08:33:02 +08:00
xushiwei
c0a0e889e7
Merge pull request #1214 from luoliwoshang/emb/esp32/tag
...
internal/build:include target build-tags in Go package compilation
2025-08-19 08:30:56 +08:00
xushiwei
c5b4452a1b
Merge pull request #1217 from luoliwoshang/llgo/asm
...
cl(feat):llgo.asm implement tinygo.Asm
2025-08-19 08:14:22 +08:00
luoliwoshang
afee2beebe
cl/instr:rm llgoAsmBase
2025-08-17 18:41:38 +08:00
xushiwei
630b63744a
Merge pull request #1212 from goplus/dependabot/github_actions/actions/checkout-5
...
build(deps): bump actions/checkout from 4 to 5
2025-08-17 18:17:15 +08:00
xushiwei
1399c40243
Merge pull request #1215 from goplus/dependabot/go_modules/github.com/goplus/gogen-1.19.1
...
build(deps): bump github.com/goplus/gogen from 1.19.0 to 1.19.1
2025-08-17 18:04:41 +08:00
luoliwoshang
a148964878
feat:llgo.Asm
...
test:asm test with `nop`
2025-08-17 16:50:16 +08:00
Li Jie
b831952e2e
build native/wasi with clang++ and keep embed building with clang
2025-08-16 10:49:00 +08:00
Li Jie
21174e44bb
fix wasi-libc caching path
2025-08-16 10:48:16 +08:00
Li Jie
b650a546cd
supports linkerscript
2025-08-16 10:47:39 +08:00
Li Jie
e580ecc55c
fix sysroot on macos with esp clang
2025-08-16 10:46:44 +08:00
visualfc
04bb3eb5a9
internal/cabi: check and skip param empty type
2025-08-15 21:29:43 +08:00
visualfc
28962a1c6c
internal/cabi: test composite
2025-08-15 15:34:55 +08:00
visualfc
2fca50b7e5
internal/cabi: test wasm
2025-08-15 10:31:16 +08:00
visualfc
3617c82e8b
internal/cabi: fix arch amd64
2025-08-14 11:22:01 +08:00
dependabot[bot]
bf0f81afd7
build(deps): bump github.com/goplus/gogen from 1.19.0 to 1.19.1
...
Bumps [github.com/goplus/gogen](https://github.com/goplus/gogen ) from 1.19.0 to 1.19.1.
- [Release notes](https://github.com/goplus/gogen/releases )
- [Commits](https://github.com/goplus/gogen/compare/v1.19.0...v1.19.1 )
---
updated-dependencies:
- dependency-name: github.com/goplus/gogen
dependency-version: 1.19.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-14 00:25:06 +00:00
visualfc
ef07188534
internal/cabi: fix arch arm
2025-08-13 16:54:49 +08:00
visualfc
5fe7ee9b6a
internal/cabi: TestBuild TestABI
2025-08-13 15:28:04 +08:00
luoliwoshang
a069e1d438
internal/build:include target build-tags in Go package compilation
2025-08-12 18:59:49 +08:00
dependabot[bot]
827f8b0e88
build(deps): bump actions/checkout from 4 to 5
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-12 08:37:24 +00:00
luoliwoshang
b9fdc2a25c
fix: set correct argc=0 in _start() function
2025-08-12 15:42:44 +08:00
visualfc
d2d999d369
internal/cabi: transform cfunc check called
2025-08-12 10:54:32 +08:00
visualfc
7b36cca86b
_demo/cabi: abi test demo
2025-08-12 09:46:03 +08:00
visualfc
843dd03553
cmd: llgo -abi flag (default 2)
2025-08-12 09:43:47 +08:00
visualfc
6460724feb
chore: llgen -abi flags (default 0)
2025-08-12 09:42:58 +08:00
visualfc
8e87bb6e86
internal/build: cabi transformer
2025-08-12 09:31:43 +08:00
visualfc
3ac2929789
internal/cabi: transform pkg to cabi
2025-08-12 09:30:16 +08:00
visualfc
2a88d5777a
ssa: export target and module
2025-08-12 09:29:43 +08:00
xushiwei
b2c6534c92
Merge pull request #1209 from goplus/dependabot/go_modules/github.com/goplus/llvm-0.8.5
...
build(deps): bump github.com/goplus/llvm from 0.8.3 to 0.8.5
2025-08-08 19:49:51 +08:00
xushiwei
303b620062
Merge pull request #1208 from goplus/dependabot/go_modules/golang.org/x/tools-0.36.0
...
build(deps): bump golang.org/x/tools from 0.35.0 to 0.36.0
2025-08-08 19:49:32 +08:00
xushiwei
6940a5846b
Merge pull request #1210 from visualfc/ssa_typeassert
...
ssa: fix TypeAssert check null
2025-08-08 19:48:27 +08:00
xushiwei
aa165829c6
Merge pull request #1199 from visualfc/pyptr
...
ssa: PyVal support pointer to long
2025-08-08 19:46:43 +08:00
visualfc
56f90dbcf9
ssa: fix TypeAssert check null
2025-08-08 12:11:17 +08:00
dependabot[bot]
1e09f54e56
build(deps): bump github.com/goplus/llvm from 0.8.3 to 0.8.5
...
Bumps [github.com/goplus/llvm](https://github.com/goplus/llvm ) from 0.8.3 to 0.8.5.
- [Release notes](https://github.com/goplus/llvm/releases )
- [Commits](https://github.com/goplus/llvm/compare/v0.8.3...v0.8.5 )
---
updated-dependencies:
- dependency-name: github.com/goplus/llvm
dependency-version: 0.8.5
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-08 00:51:16 +00:00
dependabot[bot]
39f0877ba0
build(deps): bump golang.org/x/tools from 0.35.0 to 0.36.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.35.0 to 0.36.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.35.0...v0.36.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-version: 0.36.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-08 00:51:11 +00:00
visualfc
54dfd3c701
ssa: PyVal support pointer to long
2025-08-07 20:39:35 +08:00
xushiwei
f43e2c0dee
Merge pull request #1204 from visualfc/checklink
...
internal/build: set CheckLinkArgs disable on default
2025-08-07 17:17:22 +08:00
xushiwei
b03b8146df
Merge pull request #1202 from visualfc/build
...
internal/build: delete duplicate linkObjFiles
2025-08-07 17:15:29 +08:00
xushiwei
1f94cfbe57
Merge pull request #1173 from luoliwoshang/os/direntNamePtr
...
os:direntNamePtr for array
2025-08-07 16:59:56 +08:00
xushiwei
6648e43bba
Merge pull request #1205 from goplus/dependabot/github_actions/actions/download-artifact-5
...
build(deps): bump actions/download-artifact from 4 to 5
2025-08-07 16:55:46 +08:00
Li Jie
87f4f618aa
feat(crosscompile): use versioned cache directory for ESP Clang
...
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 >
2025-08-06 20:25:50 +08:00
visualfc
dab8379392
internal/build: set CheckLinkArgs disable on default
2025-08-06 15:01:05 +08:00
dependabot[bot]
2fde31d782
build(deps): bump actions/download-artifact from 4 to 5
...
Bumps [actions/download-artifact](https://github.com/actions/download-artifact ) from 4 to 5.
- [Release notes](https://github.com/actions/download-artifact/releases )
- [Commits](https://github.com/actions/download-artifact/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/download-artifact
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-06 00:16:30 +00:00
Li Jie
7c4c8b8726
use prebuilt esp-llvm
2025-08-05 20:28:26 +08:00
Li Jie
deea8754ae
feat(crosscompile): add ESP Clang multi-platform support
...
- 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 >
2025-08-04 15:18:15 +08:00
visualfc
69c1787e22
internal/build: delete duplicate linkObjFiles
2025-08-04 10:39:43 +08:00
Li Jie
3ac881b191
feat(crosscompile): add wasi-libc support with LLGoROOT priority
...
- 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 >
2025-08-02 20:18:37 +08:00
xushiwei
aa49fe665f
Merge pull request #1193 from cpunion/targets-refactor-1176
...
Build targets task 1: Basic Target Parameter Support for llgo build/run/test commands
2025-08-02 06:09:52 +08:00
Li Jie
b773de0815
ci: add build -target tests
2025-07-30 20:25:05 +08:00
Li Jie
49a5d3a350
dummy _start function for libc-free cases
2025-07-30 20:16:30 +08:00
Li Jie
6f829d0d43
add empty demo for build -target tests
2025-07-30 20:16:29 +08:00
Li Jie
daf0d7e56e
feat(cmd): enable -target parameter for build, run, and test commands
...
- Update build command: llgo build -target platform
- Update run command: llgo run -target platform
- Update test command: llgo test -target platform
- Wire target flag to build configuration
- Update usage documentation for new parameter
Examples:
- llgo build -target rp2040 ./firmware
- llgo run -target wasi ./main.go
- llgo test -target cortex-m ./tests
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-07-30 20:16:29 +08:00
Li Jie
0136344282
feat(cmd): add -target flag support for build commands
...
- Add Target flag variable to support -target parameter
- Update AddBuildFlags to include target platform option
- Enable syntax: -target platform (e.g., rp2040, wasi)
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-07-30 20:16:29 +08:00
Li Jie
f571dde538
feat(build): integrate target configuration system into build pipeline
...
- Add Target field to build.Config struct
- Update build system to use crosscompile.UseWithTarget()
- Enable target-based cross-compilation in build pipeline
- Maintain backward compatibility with existing GOOS/GOARCH workflow
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-07-30 20:16:29 +08:00
Li Jie
5424b53b62
feat(crosscompile): extend Export struct and add target-based configuration
...
- Add LLVMTarget, CPU, Features, BuildTags fields to Export struct
- Implement UseTarget() function for target name-based configuration loading
- Add UseWithTarget() function combining target and goos/goarch fallback
- Include comprehensive unit tests for target integration
- Support 206+ embedded platform configurations with inheritance
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-07-30 20:16:25 +08:00
xushiwei
86519b471e
Merge pull request #1198 from visualfc/pybytes
...
ssa: PyVal support py bytes
2025-07-30 15:18:22 +08:00
visualfc
36fa18b28c
ssa: PyVal support py bytes
2025-07-30 12:12:19 +08:00
xushiwei
d8da4364fd
Merge pull request #1196 from visualfc/pyfunc
...
ssa: PyVal support pyfunc
2025-07-29 21:42:17 +08:00
visualfc
2538be9318
ssa: PyVal support pyfunc
2025-07-29 20:55:56 +08:00
xushiwei
a9193e36ff
Merge pull request #1195 from visualfc/pyexpr
...
ssa: PyVal support bool,int,uint,string,complex
2025-07-29 20:09:16 +08:00
visualfc
0a6588c348
ssa: PyVal support bool,int,uint,string,bytearray,complex
2025-07-29 16:08:09 +08:00
Li Jie
0c11c93b3a
docs: add LICENSE file for targets directory
...
Add license attribution for target configuration files derived from TinyGo project:
- Document source from https://github.com/tinygo-org/tinygo/tree/release/targets
- Include complete BSD 3-Clause license from TinyGo project
- Clarify licensing terms for target configuration files
- Ensure proper attribution to TinyGo Authors and Go Authors
- Maintain compliance with original license requirements
This ensures proper license compliance when using TinyGo's target configurations
in the llgo project.
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-07-29 15:13:02 +08:00
Li Jie
b80a54eb0f
feat: implement target configuration system for issue #1176
...
Add comprehensive target configuration parsing and inheritance system:
- Create internal/targets package with config structures
- Support JSON configuration loading with inheritance resolution
- Implement multi-level inheritance (e.g., rp2040 → cortex-m0plus → cortex-m)
- Add 206 target configurations from TinyGo for embedded platforms
- Support core fields: name, llvm-target, cpu, features, build-tags, goos, goarch, cflags, ldflags
- Provide high-level resolver interface for target lookup
- Include comprehensive unit tests with 100% target parsing coverage
This foundation enables future -target parameter support for cross-compilation
to diverse embedded platforms beyond current GOOS/GOARCH limitations.
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-07-29 15:12:58 +08:00
xushiwei
5eb833a984
Update README.md
2025-07-15 12:30:41 +08:00
xushiwei
66fd3a552d
Merge pull request #1186 from goplus/dependabot/go_modules/golang.org/x/tools-0.35.0
...
build(deps): bump golang.org/x/tools from 0.34.0 to 0.35.0
2025-07-14 23:19:16 +08:00
dependabot[bot]
7f4b0d6215
build(deps): bump golang.org/x/tools from 0.34.0 to 0.35.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.34.0 to 0.35.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.34.0...v0.35.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-version: 0.35.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-07-14 01:07:12 +00:00
xushiwei
5e6dd7644b
Update README.md
2025-07-08 16:09:22 +08:00
xushiwei
a430e325ed
Merge pull request #1184 from visualfc/syscall-js
...
runtime: support syscall/js
2025-07-07 11:02:15 +08:00
visualfc
e77c3a040d
runtime: support syscall/js
2025-07-07 10:31:22 +08:00
xushiwei
734b3a075e
Merge pull request #1183 from visualfc/patch
...
cl: patchType check func signature
2025-07-07 08:10:22 +08:00
xushiwei
6b5f299ccd
Merge pull request #1182 from visualfc/emjs
...
runtime/js: impl CopyBytesToGo/CopyBytesToJS
2025-07-07 08:09:20 +08:00
visualfc
281b3ecf64
runtime/js: itoa
2025-07-04 10:00:46 +08:00
visualfc
d7f2f4efdd
cl: patchType check func signature
2025-07-03 20:48:51 +08:00
visualfc
08077f03f1
runtime/js: impl CopyBytesToGo,CopyBytesToJS
2025-07-02 20:00:08 +08:00
visualfc
3d41514abd
runtime/js: fix call args value incref
2025-07-02 14:36:08 +08:00
xushiwei
f2c16beab6
Merge pull request #1174 from luoliwoshang/build/rpathmode
...
refactor(internal/build):remove rpath change
2025-07-01 13:25:12 +08:00
xushiwei
8983b146f2
Merge pull request #1180 from visualfc/emcc_js
...
[WIP] runtime/js: js for emscripten
2025-07-01 13:24:04 +08:00
xushiwei
8b0c6eae02
Merge pull request #1181 from visualfc/trace
...
debug: fix print stack for wasm
2025-07-01 13:22:42 +08:00
visualfc
013f2ef00d
debug: fix print stack for wasm
2025-07-01 11:31:15 +08:00
visualfc
e972be8dab
runtime/js: js for emscripten
2025-06-30 20:55:32 +08:00
luoliwoshang
e60c3bd943
refactor(internal/build):remove rpath change
2025-06-26 13:55:58 +08:00
luoliwoshang
417a5692e3
os:direntNamePtr for array
2025-06-26 11:44:40 +08:00
xushiwei
f0728c4fe0
Merge pull request #1164 from visualfc/codegen
...
build: gen pkg.ll to object
2025-06-25 23:14:45 +08:00
visualfc
249f85a25e
build: gen pkg to object
2025-06-25 21:01:18 +08:00
xushiwei
9c59ac297d
Merge pull request #1171 from luoliwoshang/internal/build/test
...
fix(build):test all pkg with llgo test ./...
2025-06-25 18:17:41 +08:00
luoliwoshang
6e8f3d1d19
test(build):collect llgo test ./... output to test
2025-06-25 15:38:20 +08:00
luoliwoshang
3df783de13
test(build):case with llgo test ./...
2025-06-24 16:34:33 +08:00
luoliwoshang
b469fc990f
fix(build):test all pkg with llgo test ./...
2025-06-24 14:07:20 +08:00
xushiwei
6df688e62e
Merge pull request #1168 from xushiwei/q
...
#1165 cpkgimp: import c package
2025-06-23 23:07:12 +08:00
xushiwei
4f6f1c4453
#1165 cpkgimp: import c package
2025-06-23 22:58:26 +08:00
xushiwei
891e47ef60
Merge pull request #1167 from xushiwei/q
...
Write a C package in Go
2025-06-23 22:51:41 +08:00
xushiwei
84f0c0fd9f
codecov: skip cl/cltest
2025-06-23 22:43:30 +08:00
xushiwei
25d64f2812
Merge pull request #1166 from xushiwei/q
...
rm llgo.old
2025-06-23 22:04:00 +08:00
xushiwei
915cdf2c23
#1165
2025-06-23 22:01:42 +08:00
xushiwei
b7b6e3bc93
testFrom: use test.Diff
2025-06-23 21:14:26 +08:00
xushiwei
3d53b12dea
rm llgo.old
2025-06-23 15:45:07 +08:00
xushiwei
132e240e87
Delete doc/How-to-support-a-Rust-Library.md
2025-06-22 15:47:05 +08:00
xushiwei
0b233ea155
Merge pull request #1149 from luoliwoshang/readme/dep
...
ci/doc:install libunwind-19 & libc++-19
2025-06-22 15:29:36 +08:00
xushiwei
e9c96390e6
Merge pull request #1151 from luoliwoshang/internal/build/testdir
...
internal/build:switch workdir from testpkg like go behavior
2025-06-22 15:26:07 +08:00
xushiwei
50bd078620
Merge pull request #1130 from visualfc/globals
...
link globals importpath.name=value
2025-06-22 07:20:53 +08:00
luoliwoshang
65f1c2589c
chore:consist install llvm component lib order
2025-06-20 18:07:30 +08:00
luoliwoshang
695329b9dd
ci/doc:install libunwind-19 & libc++-19
2025-06-20 18:07:30 +08:00
visualfc
4726e824a0
build: link globals importpath.name=value
2025-06-17 11:11:06 +08:00
xushiwei
e68355d94f
Merge pull request #1148 from visualfc/makefunc
...
reflect: makeFunc
2025-06-16 17:02:19 +08:00
xushiwei
f5c08a2681
Merge pull request #1152 from luoliwoshang/badge/xgo
...
chore(xgo):gop_autogen => xgo_autogen
2025-06-16 17:00:35 +08:00
xushiwei
b14520954c
Merge pull request #1153 from luoliwoshang/readme/xgo
...
readme(xgo):xgo project
2025-06-16 17:00:10 +08:00
xushiwei
04ac5de29d
Merge pull request #1154 from luoliwoshang/release/xgo
...
goreleaser:gop => xgo
2025-06-16 16:59:50 +08:00
visualfc
2118849d27
cl/_testgo/reflectmkfn
2025-06-13 09:13:48 +08:00
luoliwoshang
5e928b5ae1
goreleaser:gop => xgo
2025-06-12 19:05:50 +08:00
luoliwoshang
3576ed36e2
ci:fmt check ignore xgo_autogen.go
2025-06-12 18:55:18 +08:00
luoliwoshang
fc88c89f7c
readme(xgo):xgo project
2025-06-12 18:53:08 +08:00
luoliwoshang
f48b37a218
chore(xgo):gop_autogen => xgo_autogen
2025-06-12 18:49:17 +08:00
luoliwoshang
48bd1d46af
internal/build:switch workdir from testpkg like go behavior
2025-06-12 16:49:40 +08:00
visualfc
20a7d0f120
runtime/internal/lib/reflect: fix funcOf for runtime
2025-06-12 16:12:34 +08:00
visualfc
84729e21b8
reflect: makeFunc
2025-06-12 15:50:56 +08:00
xushiwei
26aaa65c1d
Merge pull request #1144 from visualfc/ffi_wasm
...
libffi: support wasm32
2025-06-12 12:55:35 +08:00
xushiwei
c863daf873
Merge pull request #1147 from luoliwoshang/c++
...
cl:compile with clang++
2025-06-12 12:54:13 +08:00
luoliwoshang
93197e7621
internal/build:compile with c mode,when c file
2025-06-12 11:55:47 +08:00
luoliwoshang
9001cdb8f2
test:lib/cpp test
2025-06-11 21:11:21 +08:00
luoliwoshang
e7e9530eb8
some wrap to cpp
2025-06-11 21:02:32 +08:00
luoliwoshang
bdff346a20
temp moveup testdemo
2025-06-11 20:49:56 +08:00
luoliwoshang
4f5c95045d
chore:keep origin c format
2025-06-11 20:30:44 +08:00
luoliwoshang
efabdf27c8
fcntl_unix.cpp
2025-06-11 20:04:13 +08:00
luoliwoshang
f36098d704
internal:link by LLGoFile to find libunwind
2025-06-11 19:46:49 +08:00
luoliwoshang
a5fd7f2eba
internal/cl:include llvm-config --cflags to find libunwind.h
2025-06-11 19:34:59 +08:00
luoliwoshang
0cb29ab388
internal/runtime:runtime.cpp
2025-06-11 19:02:58 +08:00
luoliwoshang
9c66cb9b00
ci:install libunwind-19-dev
2025-06-11 18:23:32 +08:00
luoliwoshang
c2a50fa98d
internal/clite:wrap with cpp
2025-06-11 18:18:52 +08:00
luoliwoshang
ac352179da
ci:install libc++-dev in linux
2025-06-11 18:13:41 +08:00
luoliwoshang
f2f93c7f5f
cl:compile with clang++
2025-06-11 17:01:12 +08:00
visualfc
ce984d44a0
libffi: support wasm32
2025-06-11 09:10:46 +08:00
xushiwei
900ae67369
Merge pull request #1142 from goplus/dependabot/go_modules/github.com/goplus/gogen-1.19.0
...
build(deps): bump github.com/goplus/gogen from 1.18.1 to 1.19.0
2025-06-09 18:07:16 +08:00
xushiwei
ffaac95c11
Merge pull request #1143 from visualfc/js
...
GOOS=js set -sENVIRONMENT=web,worker
2025-06-09 17:46:40 +08:00
visualfc
6fbc5c6fd0
GOOS=js set -sENVIRONMENT=web,worker
2025-06-09 13:34:13 +08:00
dependabot[bot]
f3c6d7e90f
build(deps): bump github.com/goplus/gogen from 1.18.1 to 1.19.0
...
Bumps [github.com/goplus/gogen](https://github.com/goplus/gogen ) from 1.18.1 to 1.19.0.
- [Release notes](https://github.com/goplus/gogen/releases )
- [Commits](https://github.com/goplus/gogen/compare/v1.18.1...v1.19.0 )
---
updated-dependencies:
- dependency-name: github.com/goplus/gogen
dependency-version: 1.19.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-06-09 01:04:12 +00:00
xushiwei
47c119a2d7
Merge pull request #1141 from goplus/dependabot/go_modules/golang.org/x/tools-0.34.0
...
build(deps): bump golang.org/x/tools from 0.30.0 to 0.34.0
2025-06-06 18:32:45 +08:00
dependabot[bot]
29904f8f22
build(deps): bump golang.org/x/tools from 0.30.0 to 0.34.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.30.0 to 0.34.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.30.0...v0.34.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-version: 0.34.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-06-06 01:16:01 +00:00
xushiwei
fc86634e29
Merge pull request #1140 from luoliwoshang/internal/dir
...
runtime:forkAndExecInChild chdir
2025-06-06 09:12:05 +08:00
xushiwei
c89c845b98
Merge pull request #1139 from visualfc/stat
...
syscall: Stat_t for js/wasip1
2025-06-06 09:09:57 +08:00
xushiwei
452d840512
Merge pull request #1138 from goplus/dependabot/go_modules/github.com/goplus/mod-0.17.1
...
build(deps): bump github.com/goplus/mod from 0.17.0 to 0.17.1
2025-06-06 09:09:19 +08:00
luoliwoshang
701568e011
internal:forkAndExecInChild chdir
2025-06-05 18:54:25 +08:00
visualfc
dade77d719
syscall: Stat_t for js/wasip1
2025-06-05 14:53:28 +08:00
dependabot[bot]
ae8b7bb1f5
build(deps): bump github.com/goplus/mod from 0.17.0 to 0.17.1
...
Bumps [github.com/goplus/mod](https://github.com/goplus/mod ) from 0.17.0 to 0.17.1.
- [Release notes](https://github.com/goplus/mod/releases )
- [Commits](https://github.com/goplus/mod/compare/v0.17.0...v0.17.1 )
---
updated-dependencies:
- dependency-name: github.com/goplus/mod
dependency-version: 0.17.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-06-04 00:37:13 +00:00
xushiwei
87c7b65223
Merge pull request #1134 from MeteorsLiu/fix-uninitiated-chan-mu
...
fix: uninitiated mutex
2025-05-27 06:27:21 +08:00
xushiwei
71815a4963
Merge pull request #1131 from goplus/dependabot/go_modules/github.com/goplus/mod-0.17.0
...
build(deps): bump github.com/goplus/mod from 0.16.1 to 0.17.0
2025-05-27 06:14:37 +08:00
Haolan
69b2bfdeb2
fix: uninitiated mutex
2025-05-26 17:21:19 +08:00
dependabot[bot]
57d74dfdbf
build(deps): bump github.com/goplus/mod from 0.16.1 to 0.17.0
...
Bumps [github.com/goplus/mod](https://github.com/goplus/mod ) from 0.16.1 to 0.17.0.
- [Release notes](https://github.com/goplus/mod/releases )
- [Commits](https://github.com/goplus/mod/compare/v0.16.1...v0.17.0 )
---
updated-dependencies:
- dependency-name: github.com/goplus/mod
dependency-version: 0.17.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-26 00:22:04 +00:00
xushiwei
450a3637e4
Merge pull request #1129 from luoliwoshang/test/exitrefine
...
chore:test exit code.
2025-05-22 22:10:46 +08:00
luoliwoshang
780c927ea6
chore:test exit code.
2025-05-22 09:53:34 +08:00
xushiwei
254db35ef1
Merge pull request #1128 from luoliwoshang/test/exit
...
build:exit when test fail
2025-05-22 05:50:49 +08:00
luoliwoshang
0463230533
build:exit when test fail
2025-05-21 16:21:06 +08:00
xushiwei
44e1435c65
Merge pull request #1127 from runsys/main
...
widows build support
2025-05-19 02:21:38 +08:00
runsys
73270f0e87
windows mingw64 llvm 20 support patch 2
2025-05-18 17:05:12 +08:00
runsys
c1550cf608
windows mingw64 llvm 20 support patch 1
2025-05-18 17:03:47 +08:00
xushiwei
cd2e8aa40a
Merge pull request #1126 from visualfc/runtime
...
runtime: GOOS GOARCH Compiler
2025-05-17 21:16:16 +08:00
visualfc
bb70b6eeab
runtime: GOOS GOARCH Compiler
2025-05-17 16:28:26 +08:00
xushiwei
9b28d2ac70
Merge pull request #1123 from cpunion/wasm-emscripten1
...
Build js/wasm with emscripten
2025-05-17 15:08:05 +08:00
Li Jie
fd1def7885
build js/wasm target with emscripten
2025-05-17 10:48:27 +08:00
Li Jie
9a79078441
clang.Cmd.CheckLinkArgs compiles to temp file and remove
2025-05-17 10:48:26 +08:00
Li Jie
bb43622fe7
runtime: wasm compatible with js build tag
2025-05-17 10:48:26 +08:00
xushiwei
9203c366e7
Merge pull request #1121 from visualfc/closure
...
fix reflect.pointer for closure; fix runtime unsafe.pointer ptrBytes
2025-05-17 01:19:40 +08:00
xushiwei
11a8af1db2
Merge pull request #1122 from visualfc/syscall
...
runtime/internal/clite/syscall: fix init
2025-05-17 01:19:04 +08:00
visualfc
c8fb7eafa0
runtime/internal/clite/os: fix stat for macOS
2025-05-16 20:36:43 +08:00
visualfc
ffc1f712a3
runtime/internal/clite/syscall: fix init
2025-05-16 16:29:31 +08:00
visualfc
cfc8687851
lib/reflect: fix closure pointer
2025-05-16 12:00:59 +08:00
visualfc
953699b2fd
internal/runtime: fix abi.UnsafePointer PtrBytes
2025-05-16 12:00:59 +08:00
xushiwei
9a16fff27e
Merge pull request #1118 from tsingbx/llgo.buildflag
...
fix gop run . flag provided but not defined: -ldflags
2025-05-16 11:21:24 +08:00
xushiwei
ac0d104231
Merge pull request #1117 from visualfc/bound
...
cl: funcName check $bound
2025-05-16 10:59:25 +08:00
xushiwei
881efea006
Merge pull request #1119 from goplus/dependabot/go_modules/github.com/goplus/gogen-1.18.1
...
build(deps): bump github.com/goplus/gogen from 1.18.0 to 1.18.1
2025-05-16 10:47:17 +08:00
dependabot[bot]
f6a380d293
build(deps): bump github.com/goplus/gogen from 1.18.0 to 1.18.1
...
Bumps [github.com/goplus/gogen](https://github.com/goplus/gogen ) from 1.18.0 to 1.18.1.
- [Release notes](https://github.com/goplus/gogen/releases )
- [Commits](https://github.com/goplus/gogen/compare/v1.18.0...v1.18.1 )
---
updated-dependencies:
- dependency-name: github.com/goplus/gogen
dependency-version: 1.18.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-16 00:57:11 +00:00
tsingbx
a971b93994
fix gop run . flag provided but not defined: -ldflags
2025-05-16 00:44:37 +08:00
visualfc
c4f0dd124d
cl: funcName check $bound
2025-05-15 21:12:18 +08:00
xushiwei
93b9b7d44c
Merge pull request #1112 from goplus/dependabot/go_modules/github.com/qiniu/x-1.14.6
...
build(deps): bump github.com/qiniu/x from 1.14.0 to 1.14.6
2025-05-13 11:03:01 +08:00
dependabot[bot]
7552bfe39b
build(deps): bump github.com/qiniu/x from 1.14.0 to 1.14.6
...
Bumps [github.com/qiniu/x](https://github.com/qiniu/x ) from 1.14.0 to 1.14.6.
- [Release notes](https://github.com/qiniu/x/releases )
- [Commits](https://github.com/qiniu/x/compare/v1.14.0...v1.14.6 )
---
updated-dependencies:
- dependency-name: github.com/qiniu/x
dependency-version: 1.14.6
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-13 00:30:42 +00:00
xushiwei
2601faaff2
Merge pull request #1111 from goplus/dependabot/go_modules/github.com/goplus/cobra-1.9.12
...
build(deps): bump github.com/goplus/cobra from 1.9.11 to 1.9.12
2025-05-13 01:02:28 +08:00
dependabot[bot]
cb2e28d086
build(deps): bump github.com/goplus/cobra from 1.9.11 to 1.9.12
...
Bumps [github.com/goplus/cobra](https://github.com/goplus/cobra ) from 1.9.11 to 1.9.12.
- [Release notes](https://github.com/goplus/cobra/releases )
- [Commits](https://github.com/goplus/cobra/compare/v1.9.11...v1.9.12 )
---
updated-dependencies:
- dependency-name: github.com/goplus/cobra
dependency-version: 1.9.12
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-12 00:59:41 +00:00
xushiwei
337877313a
Merge pull request #1109 from xushiwei/q
...
rm xtool/{cppkg,cpgithubpkg}
2025-05-12 04:04:08 +08:00
xushiwei
1693942cee
rm xtool/{cppkg,cpgithubpkg}
2025-05-12 03:50:07 +08:00
xushiwei
867a1ce2f4
Merge pull request #1108 from xushiwei/q
...
github api: release/asset id => int64
2025-05-12 02:28:34 +08:00
xushiwei
26b997537f
getAppManager: rm notFoundMgs
2025-05-12 02:26:46 +08:00
xushiwei
19056b8a19
Merge remote-tracking branch 'gop/main' into q
2025-05-12 02:25:26 +08:00
xushiwei
10d603b377
Merge pull request #1104 from luoliwoshang/unix/install
...
xtool/cppkg:install in linux
2025-05-12 02:24:36 +08:00
xushiwei
3f41c313ad
github api: release/asset id => int64
2025-05-11 20:55:59 +08:00
xushiwei
d440949c1d
Merge pull request #1103 from tsingbx/llgo.usage
...
add usage for llgo
2025-05-10 11:29:30 +08:00
xushiwei
64314dc6cf
Merge pull request #1107 from xushiwei/q
...
github api: EnumTags
2025-05-10 11:28:17 +08:00
xushiwei
decb9d7f11
github api: EnumTags
2025-05-10 11:27:50 +08:00
tsingbx
975b0b74ee
panic err => return
2025-05-10 07:15:48 +08:00
xushiwei
9aa7807b02
Merge pull request #1106 from xushiwei/q
...
xtool/cppkg: ConanStderr
2025-05-09 23:36:12 +08:00
xushiwei
337c6cfa25
xtool/cppkg: ConanStderr
2025-05-09 23:31:31 +08:00
luoliwoshang
f09a423ee7
xtool/cppkg:tips when app managers not found
2025-05-09 14:25:44 +08:00
tsingbx
3bf28f52c4
add usage for llgo
2025-05-09 12:59:11 +08:00
luoliwoshang
f794592f42
xtool/cppkg install by pipx
2025-05-09 10:20:05 +08:00
xushiwei
98bd05b47b
Merge pull request #1102 from xushiwei/q
...
cmd/llog: main_cmd.gox => main_app.gox
2025-05-08 09:41:20 +08:00
xushiwei
3edbde0839
cmd/llog: main_cmd.gox => main_app.gox
2025-05-08 09:34:01 +08:00
xushiwei
a2d92eac0b
Merge pull request #1100 from goplus/dependabot/go_modules/github.com/goplus/cobra-1.9.11
...
build(deps): bump github.com/goplus/cobra from 1.9.9 to 1.9.11
2025-05-08 09:31:35 +08:00
xushiwei
eb47c545ec
Merge pull request #1101 from xushiwei/q
...
xtool/cppkg: InstallPkg allows to customize cacheDir
2025-05-08 09:30:06 +08:00
xushiwei
c858f79449
xtool/cppkg: InstallPkg allows to customize cacheDir
2025-05-08 09:26:45 +08:00
dependabot[bot]
27f6efbdec
build(deps): bump github.com/goplus/cobra from 1.9.9 to 1.9.11
...
Bumps [github.com/goplus/cobra](https://github.com/goplus/cobra ) from 1.9.9 to 1.9.11.
- [Release notes](https://github.com/goplus/cobra/releases )
- [Commits](https://github.com/goplus/cobra/compare/v1.9.9...v1.9.11 )
---
updated-dependencies:
- dependency-name: github.com/goplus/cobra
dependency-version: 1.9.11
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-08 00:59:40 +00:00
xushiwei
bba7494ffd
Merge pull request #1099 from xushiwei/q
...
xtool/cppkg: InstallPkg KnownLatestVersion
2025-05-08 08:17:20 +08:00
xushiwei
0f79cad5a7
xtool/cppkg: InstallPkg KnownLatestVersion
2025-05-08 08:10:56 +08:00
xushiwei
9e7bacbe23
Merge pull request #1098 from xushiwei/q
...
cmd/llgo: main cmd
2025-05-07 22:31:39 +08:00
xushiwei
2301a4834d
cmd/llog: main cmd
2025-05-07 22:30:54 +08:00
xushiwei
40e0f58079
Merge pull request #1094 from goplus/dependabot/go_modules/github.com/goplus/cobra-1.9.9
...
build(deps): bump github.com/goplus/cobra from 1.9.8 to 1.9.9
2025-05-07 03:40:46 +08:00
xushiwei
c23fb144cf
Merge branch 'main' into dependabot/go_modules/github.com/goplus/cobra-1.9.9
2025-05-07 03:33:04 +08:00
xushiwei
caac681ac3
Merge pull request #1095 from goplus/dependabot/go_modules/github.com/goplus/gogen-1.18.0
...
build(deps): bump github.com/goplus/gogen from 1.17.3 to 1.18.0
2025-05-07 03:32:18 +08:00
xushiwei
9ba3b3ef8f
Merge pull request #1097 from goplus/dependabot/go_modules/github.com/goplus/mod-0.16.1
...
build(deps): bump github.com/goplus/mod from 0.16.0 to 0.16.1
2025-05-07 03:24:15 +08:00
dependabot[bot]
d7e523948b
build(deps): bump github.com/goplus/mod from 0.16.0 to 0.16.1
...
Bumps [github.com/goplus/mod](https://github.com/goplus/mod ) from 0.16.0 to 0.16.1.
- [Release notes](https://github.com/goplus/mod/releases )
- [Commits](https://github.com/goplus/mod/compare/v0.16.0...v0.16.1 )
---
updated-dependencies:
- dependency-name: github.com/goplus/mod
dependency-version: 0.16.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-06 15:00:31 +00:00
dependabot[bot]
10a75138d1
build(deps): bump github.com/goplus/gogen from 1.17.3 to 1.18.0
...
Bumps [github.com/goplus/gogen](https://github.com/goplus/gogen ) from 1.17.3 to 1.18.0.
- [Release notes](https://github.com/goplus/gogen/releases )
- [Commits](https://github.com/goplus/gogen/compare/v1.17.3...v1.18.0 )
---
updated-dependencies:
- dependency-name: github.com/goplus/gogen
dependency-version: 1.18.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-06 15:00:25 +00:00
dependabot[bot]
d48b19c866
build(deps): bump github.com/goplus/cobra from 1.9.8 to 1.9.9
...
Bumps [github.com/goplus/cobra](https://github.com/goplus/cobra ) from 1.9.8 to 1.9.9.
- [Release notes](https://github.com/goplus/cobra/releases )
- [Commits](https://github.com/goplus/cobra/compare/v1.9.8...v1.9.9 )
---
updated-dependencies:
- dependency-name: github.com/goplus/cobra
dependency-version: 1.9.9
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-06 15:00:21 +00:00
xushiwei
1fdcb55eba
Merge pull request #1080 from xushiwei/q
...
xtool/cpgithubpkg
2025-05-06 09:44:05 +08:00
xushiwei
16cec9f045
merge upstream
2025-05-06 09:41:19 +08:00
xushiwei
438b0bd1b0
Merge pull request #1091 from visualfc/go123
...
go.mod go1.23
2025-05-06 08:32:06 +08:00
visualfc
e8a91696d6
go.mod go1.23
2025-05-05 10:19:23 +08:00
xushiwei
8882c31eb4
Merge pull request #1090 from xushiwei/cppkg
...
xtool/cppkg: support latest version
2025-05-04 17:40:07 +08:00
xushiwei
8455ee8226
xtool/cppkg: support latest version
2025-05-04 17:34:02 +08:00
xushiwei
3f74aded8a
Merge pull request #1089 from xushiwei/cppkg
...
llgo cppkg: remove unused import
2025-05-04 16:44:38 +08:00
xushiwei
2e19c2013c
llgo cppkg: remove unused import
2025-05-04 16:43:07 +08:00
xushiwei
1edaa2d09b
Merge pull request #1088 from xushiwei/cppkg
...
cmd: llgo cppkg install
2025-05-04 16:06:20 +08:00
xushiwei
beee018287
cmd: llgo cppkg install
2025-05-04 16:01:58 +08:00
xushiwei
34266ea59d
Merge pull request #1087 from xushiwei/cppkg
...
llgo.next => llgo
2025-05-04 15:39:50 +08:00
xushiwei
f26127ce98
llgo.next => llgo
2025-05-04 15:34:32 +08:00
xushiwei
ccf321d178
Merge pull request #1086 from xushiwei/cppkg
...
llgo.next: support build, run, cmptest
2025-05-04 15:23:40 +08:00
xushiwei
355721c47a
llgo.next: support build, run, cmptest
2025-05-04 15:18:49 +08:00
xushiwei
d400663e5d
Merge pull request #1085 from xushiwei/cppkg
...
cmd: llgo.next
2025-05-04 14:14:10 +08:00
xushiwei
2203be945a
codecov: ignore llgo.next
2025-05-04 14:10:43 +08:00
xushiwei
b9a2bf4b42
fmt: ignore gop_autogen.go
2025-05-04 14:08:43 +08:00
xushiwei
cc08195cf2
cmd: llgo.next
2025-05-04 14:04:43 +08:00
xushiwei
50c40a7828
Merge pull request #1084 from xushiwei/cppkg
...
go mod tidy
2025-05-04 10:41:57 +08:00
xushiwei
158be3f949
go mod tidy
2025-05-04 10:28:24 +08:00
xushiwei
0f87c322ca
Merge pull request #1082 from xushiwei/cppkg
...
xtool/cppkg: Main => Install
2025-05-04 00:15:26 +08:00
xushiwei
d5dd19b64c
xtool/cppkg: Main => Install
2025-05-04 00:08:20 +08:00
xushiwei
3ac9055493
xtool/cpgithubpkg
2025-05-03 23:30:29 +08:00
xushiwei
3032d730b7
Merge pull request #1079 from xushiwei/q
...
package: xtool/cppkg
2025-05-03 23:22:55 +08:00
xushiwei
e93e7126b6
package: xtool/cppkg
2025-05-03 23:13:10 +08:00
xushiwei
9bcf41d28f
Merge pull request #1078 from xushiwei/q
...
github api: release, tag, commit
2025-05-03 22:58:01 +08:00
xushiwei
604ce47d5e
github api: release, tag, commit
2025-05-03 22:50:04 +08:00
xushiwei
e1ebe150d4
Merge pull request #1077 from goplus/dependabot/go_modules/github.com/goplus/gogen-1.17.3
...
build(deps): bump github.com/goplus/gogen from 1.17.2 to 1.17.3
2025-04-28 08:28:56 +08:00
dependabot[bot]
ae992737e8
build(deps): bump github.com/goplus/gogen from 1.17.2 to 1.17.3
...
Bumps [github.com/goplus/gogen](https://github.com/goplus/gogen ) from 1.17.2 to 1.17.3.
- [Release notes](https://github.com/goplus/gogen/releases )
- [Commits](https://github.com/goplus/gogen/compare/v1.17.2...v1.17.3 )
---
updated-dependencies:
- dependency-name: github.com/goplus/gogen
dependency-version: 1.17.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-28 00:15:49 +00:00
xushiwei
c59d609eb8
Merge pull request #1076 from xushiwei/t
...
_cmptest: mathbigdemo
2025-04-28 01:18:10 +08:00
xushiwei
9f26d12a3e
_cmptest: mathbigdemo
2025-04-28 01:03:13 +08:00
xushiwei
9102577eba
Merge pull request #1075 from xushiwei/t
...
go/parser demo
2025-04-28 00:46:00 +08:00
xushiwei
f0fcfde22b
README: go/parser
2025-04-28 00:37:11 +08:00
xushiwei
d9d813db56
go/parser demo
2025-04-28 00:35:45 +08:00
xushiwei
a8808855ae
Merge pull request #1074 from visualfc/fix_amd64
...
runtime/internal/clite/pthread/sync/sync_darwin_amd64: PthreadMutexSize = 64
2025-04-27 16:20:35 +08:00
visualfc
5583f9418a
runtime/internal/clite/pthread/sync/sync_darwin_amd64: PthreadMutexSize = 64
2025-04-27 12:40:32 +08:00
xushiwei
7369ffd2aa
Merge pull request #1073 from xushiwei/t
...
_demo: hello
2025-04-26 23:04:06 +08:00
xushiwei
ab15f30b13
_demo: hello
2025-04-26 22:55:46 +08:00
xushiwei
8bff07d66b
Merge pull request #1072 from xushiwei/t
...
fix #965 Dead loop in cl/blocks.Infos
2025-04-26 22:38:45 +08:00
xushiwei
e2e2cb38be
fix #965
2025-04-26 22:23:36 +08:00
xushiwei
10d84a6a6b
Merge pull request #1070 from goplus/dependabot/go_modules/github.com/goplus/mod-0.16.0
...
build(deps): bump github.com/goplus/mod from 0.15.1 to 0.16.0
2025-04-26 06:40:51 +08:00
dependabot[bot]
a4b4c1574b
build(deps): bump github.com/goplus/mod from 0.15.1 to 0.16.0
...
Bumps [github.com/goplus/mod](https://github.com/goplus/mod ) from 0.15.1 to 0.16.0.
- [Release notes](https://github.com/goplus/mod/releases )
- [Commits](https://github.com/goplus/mod/compare/v0.15.1...v0.16.0 )
---
updated-dependencies:
- dependency-name: github.com/goplus/mod
dependency-version: 0.16.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-25 22:33:17 +00:00
xushiwei
94bc39bdb2
Merge pull request #1071 from goplus/dependabot/go_modules/github.com/qiniu/x-1.13.19
...
build(deps): bump github.com/qiniu/x from 1.13.18 to 1.13.19
2025-04-26 06:32:13 +08:00
dependabot[bot]
7c93b37125
build(deps): bump github.com/qiniu/x from 1.13.18 to 1.13.19
...
Bumps [github.com/qiniu/x](https://github.com/qiniu/x ) from 1.13.18 to 1.13.19.
- [Release notes](https://github.com/qiniu/x/releases )
- [Commits](https://github.com/qiniu/x/compare/v1.13.18...v1.13.19 )
---
updated-dependencies:
- dependency-name: github.com/qiniu/x
dependency-version: 1.13.19
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-22 00:11:24 +00:00
xushiwei
4371cc10bd
Merge pull request #1068 from goplus/dependabot/go_modules/github.com/qiniu/x-1.13.18
...
build(deps): bump github.com/qiniu/x from 1.13.17 to 1.13.18
2025-04-22 00:55:37 +08:00
xushiwei
eaa2628934
Merge pull request #1069 from goplus/dependabot/go_modules/github.com/goplus/gogen-1.17.2
...
build(deps): bump github.com/goplus/gogen from 1.17.1 to 1.17.2
2025-04-21 22:21:09 +08:00
dependabot[bot]
30e247186c
build(deps): bump github.com/goplus/gogen from 1.17.1 to 1.17.2
...
Bumps [github.com/goplus/gogen](https://github.com/goplus/gogen ) from 1.17.1 to 1.17.2.
- [Release notes](https://github.com/goplus/gogen/releases )
- [Commits](https://github.com/goplus/gogen/compare/v1.17.1...v1.17.2 )
---
updated-dependencies:
- dependency-name: github.com/goplus/gogen
dependency-version: 1.17.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-21 00:49:42 +00:00
dependabot[bot]
2714da8d98
build(deps): bump github.com/qiniu/x from 1.13.17 to 1.13.18
...
Bumps [github.com/qiniu/x](https://github.com/qiniu/x ) from 1.13.17 to 1.13.18.
- [Release notes](https://github.com/qiniu/x/releases )
- [Commits](https://github.com/qiniu/x/compare/v1.13.17...v1.13.18 )
---
updated-dependencies:
- dependency-name: github.com/qiniu/x
dependency-version: 1.13.18
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-21 00:48:47 +00:00
xushiwei
0ef3a7ec25
Merge pull request #1067 from cpunion/llgo-env
...
Fix args parsing
2025-04-18 19:42:14 +08:00
Li Jie
489a0069aa
extract common cmd flags
2025-04-18 13:12:05 +08:00
xushiwei
a257b7bdfa
Merge pull request #1059 from cpunion/wasm-dev
...
Wasm dev
2025-04-18 08:55:20 +08:00
Li Jie
739cc66d0d
test wasm with _demo/hello
2025-04-18 00:37:02 +08:00
Li Jie
28d944c6af
remove unused wasm_import
2025-04-17 22:59:34 +08:00
Li Jie
19b98393a6
TODO: defer workaround, should remove after fix
2025-04-17 10:06:59 +08:00
Li Jie
5a13e7400e
update outdated github.com/goplus/llgo/c references
2025-04-17 10:06:56 +08:00
Li Jie
a56129d675
blank syscall.SetNonblock on wasm
2025-04-17 09:58:52 +08:00
Li Jie
0d75bbace0
fix itab on 32bit
2025-04-17 09:58:52 +08:00
Li Jie
29ec4a7a0e
allow config LLGO_WASM_RUNTIME with args
2025-04-17 09:58:52 +08:00
Li Jie
8b26c48d9b
execute clang -v in verbose mode
2025-04-17 09:58:52 +08:00
Li Jie
ddd0535d30
split llfiles and ldflags and extract compileAndLinkLLFiles to prepare multi-phase build
2025-04-17 09:58:52 +08:00
xushiwei
adcd370c27
Merge pull request #1066 from goplus/dependabot/go_modules/github.com/goplus/mod-0.15.1
...
build(deps): bump github.com/goplus/mod from 0.13.17 to 0.15.1
2025-04-16 01:50:01 +08:00
dependabot[bot]
dbead0d725
build(deps): bump github.com/goplus/mod from 0.13.17 to 0.15.1
...
Bumps [github.com/goplus/mod](https://github.com/goplus/mod ) from 0.13.17 to 0.15.1.
- [Release notes](https://github.com/goplus/mod/releases )
- [Commits](https://github.com/goplus/mod/compare/v0.13.17...v0.15.1 )
---
updated-dependencies:
- dependency-name: github.com/goplus/mod
dependency-version: 0.15.1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-14 04:26:37 +00:00
xushiwei
207aea813b
Merge pull request #1065 from goplus/dependabot/go_modules/github.com/goplus/gogen-1.17.1
...
build(deps): bump github.com/goplus/gogen from 1.16.9 to 1.17.1
2025-04-14 12:25:03 +08:00
xushiwei
7a771154a7
Merge pull request #1063 from goplus/dependabot/go_modules/github.com/qiniu/x-1.13.17
...
build(deps): bump github.com/qiniu/x from 1.13.12 to 1.13.17
2025-04-14 12:24:38 +08:00
dependabot[bot]
18c6b9b404
build(deps): bump github.com/goplus/gogen from 1.16.9 to 1.17.1
...
Bumps [github.com/goplus/gogen](https://github.com/goplus/gogen ) from 1.16.9 to 1.17.1.
- [Release notes](https://github.com/goplus/gogen/releases )
- [Commits](https://github.com/goplus/gogen/compare/v1.16.9...v1.17.1 )
---
updated-dependencies:
- dependency-name: github.com/goplus/gogen
dependency-version: 1.17.1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-14 00:40:41 +00:00
Li Jie
3110382d88
fix abi methods crash on wasm
2025-04-11 17:16:02 +08:00
Li Jie
9ee55896e3
update link args for wasm target
2025-04-11 16:28:48 +08:00
Li Jie
ad6f41f312
add LLGO_STDIO_NOBUF to toggle stdout/stderr buffer
2025-04-11 16:28:48 +08:00
Li Jie
8512395985
AllocCStr allocates on heap
2025-04-11 16:28:48 +08:00
Li Jie
7284042823
run wasm with iwasm
2025-04-11 16:28:47 +08:00
Li Jie
0ef683bba9
add LLGO_WASI_THREADS to toggle wasi threads support
2025-04-11 16:28:47 +08:00
Li Jie
d4bf66936a
specify setjmp/longjmp function names on wasm
2025-04-11 16:28:47 +08:00
Li Jie
be4737461a
make runtime compatible with wasm
2025-04-11 16:28:44 +08:00
dependabot[bot]
0d22b3be05
build(deps): bump github.com/qiniu/x from 1.13.12 to 1.13.17
...
Bumps [github.com/qiniu/x](https://github.com/qiniu/x ) from 1.13.12 to 1.13.17.
- [Release notes](https://github.com/qiniu/x/releases )
- [Commits](https://github.com/qiniu/x/compare/v1.13.12...v1.13.17 )
---
updated-dependencies:
- dependency-name: github.com/qiniu/x
dependency-version: 1.13.17
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-11 00:33:04 +00:00
Li Jie
7c81d9293b
blank ffi for wasm
2025-04-09 14:57:33 +08:00
Li Jie
d1dce65313
update link flags
2025-04-09 14:57:33 +08:00
Li Jie
641f9bbf7c
select WASM runtime by LLGO_WASM_RUNTIME
2025-04-09 14:57:32 +08:00
xushiwei
be0e42cf82
Merge pull request #1057 from cpunion/cross-compiling
...
Cross compiling
2025-04-09 14:26:09 +08:00
Li Jie
3a883b8821
upgrade to github.com/goplus/lib v0.2.0
2025-04-08 19:32:26 +08:00
Li Jie
4bbc58d62d
test cross compile on macos
2025-04-08 11:53:21 +08:00
Li Jie
5f4b09bede
regenerate snapshot tests
2025-04-08 11:13:00 +08:00
Li Jie
f0ade21155
update docs and CI
2025-04-08 11:12:59 +08:00
Li Jie
f35063ee6e
build: download and compile with wasi-sdk
2025-04-08 11:12:57 +08:00
Li Jie
e6c7627ee8
cross compilation
2025-04-08 10:46:14 +08:00
Li Jie
a85d937482
enable command tests
2025-04-08 09:38:00 +08:00
Li Jie
b17632a352
xtool: clang.Cmd supports Env/Verbose/Stdio, add CCFLAGS support
2025-04-08 09:25:49 +08:00
xushiwei
b11eb742cb
Merge pull request #1055 from cpunion/fix-ll
...
fix remote install test
2025-04-03 18:16:09 +08:00
Li Jie
b63a7f64fd
fix _readme tests
2025-04-03 17:35:45 +08:00
xushiwei
cafc438972
Merge pull request #1054 from cpunion/fix-ll
...
fix readme link and tests
2025-04-03 17:29:22 +08:00
Li Jie
33ef7f737b
fix doc links
2025-04-03 17:08:13 +08:00
Li Jie
3e26685a44
fix _readme tests
2025-04-03 17:02:06 +08:00
xushiwei
6a306be480
Merge pull request #1052 from cpunion/fix-ll
...
mv llgo/{c,cpp,py,x} => lib/{c,cpp,py,x}
2025-04-03 16:56:37 +08:00
Li Jie
9defb6289b
separate doc/_readme as a module
2025-04-03 16:44:44 +08:00
Li Jie
a47ad2886f
fix broken links
2025-04-03 16:43:23 +08:00
Li Jie
c8d791f206
fix llgo test unit test
2025-04-03 16:32:46 +08:00
Li Jie
8c5f915569
update installation scripts and docs
2025-04-03 16:26:15 +08:00
Li Jie
ed366568b4
move out c/cpp/py
2025-04-03 16:26:11 +08:00
xushiwei
0a8a4eb6a6
Merge pull request #1050 from cpunion/llvm-19
...
Llvm 19
2025-04-03 11:55:32 +08:00
Li Jie
fdc6cf4838
ci: add -mmacosx-version-min=10.13 to goreleaser macos build
2025-04-03 01:00:53 +08:00
Li Jie
e52af0077b
doc: brew link lld@19
2025-04-03 00:26:10 +08:00
Li Jie
847f544839
ci: hide sync progress
2025-04-02 23:28:13 +08:00
Li Jie
685d3202d0
ci: update goreleaser config
2025-04-02 21:49:11 +08:00
Li Jie
33a2580cc3
xtool: update llvm@19 env
2025-04-02 21:49:11 +08:00
Li Jie
a8da654597
ci: make doc verify continue on error
2025-04-02 21:06:07 +08:00
Li Jie
ae01a023ad
cl: update snapshot tests
2025-04-02 20:13:02 +08:00
Li Jie
ec20af3c4d
ci: upgrade to llvm 19
2025-04-02 20:12:41 +08:00
Li Jie
a6f1ad1c2c
compiler: upgrade to llvm@v0.8.3 (llvm 19)
2025-04-02 20:07:52 +08:00
xushiwei
c3532f17de
Merge pull request #1047 from visualfc/wasm32
...
wasm32
2025-04-01 23:32:21 +08:00
visualfc
86eac2f04d
wasm32
2025-04-01 22:40:04 +08:00
xushiwei
3b9b71643c
Merge pull request #1044 from visualfc/wasmsizes
...
compiler: check wasm sizes
2025-04-01 13:27:26 +08:00
visualfc
19417cdd52
compiler: check wasm sizes
2025-03-31 17:25:40 +08:00
xushiwei
a7c23e25d8
Merge pull request #1040 from goplus/dependabot/go_modules/compiler/github.com/goplus/gogen-1.16.9
...
build(deps): bump github.com/goplus/gogen from 1.16.8 to 1.16.9 in /compiler
2025-03-27 11:01:41 +08:00
dependabot[bot]
f96ab87536
build(deps): bump github.com/goplus/gogen in /compiler
...
Bumps [github.com/goplus/gogen](https://github.com/goplus/gogen ) from 1.16.8 to 1.16.9.
- [Release notes](https://github.com/goplus/gogen/releases )
- [Commits](https://github.com/goplus/gogen/compare/v1.16.8...v1.16.9 )
---
updated-dependencies:
- dependency-name: github.com/goplus/gogen
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-27 01:08:20 +00:00
xushiwei
d65d49f504
Merge pull request #1036 from cpunion/split-debug-and-symbols
...
Split debug and symbols toggle environment variables
2025-03-24 19:04:15 +08:00
Li Jie
8cd5924bf2
compiler: split LLGO_DEBUG into LLGO_DEBUG, LLGO_DBG_SYMBOLS, disableInline
2025-03-23 13:21:58 +08:00
xushiwei
9f38338c58
Merge pull request #1032 from cpunion/fix-linking
...
Remove LLVM runtime depencendy, better c toolchain integration
2025-03-20 15:47:43 +08:00
Li Jie
8c76436d81
ci: limit concurrency of doc links checker
2025-03-20 12:45:05 +08:00
Li Jie
0e71576265
build: pass CFLAGS and LDFLAGS to clang
2025-03-20 11:17:27 +08:00
Li Jie
71b34003ca
debug: rollback unwind to don't depends llvm runtime, solve libunwind linking on homebrew linux in llgo formal
2025-03-19 14:32:32 +08:00
xushiwei
2c417d75a2
Merge pull request #1030 from cpunion/run-llgo-test
...
ci: run llgo test
2025-03-19 12:47:31 +08:00
Li Jie
74ededd8c8
ci: run llgo test ./...
2025-03-19 11:35:52 +08:00
Li Jie
a732fa237c
test: reduce unnecessary pkgs compilation for llgo test
2025-03-19 11:35:51 +08:00
Li Jie
fd4c22308d
ssa: removed unused ssa.Program.goStrs
2025-03-19 11:25:51 +08:00
Li Jie
d6f18894e6
test: add llgo build tag to compiler test cases
2025-03-19 11:25:50 +08:00
xushiwei
992d54693f
Merge pull request #1029 from visualfc/gogen
...
update gogen v1.16.8
2025-03-19 08:51:12 +08:00
visualfc
9be1bd0775
update gogen
2025-03-19 08:32:00 +08:00
xushiwei
29cc689abd
Merge pull request #1023 from cpunion/toggle-rpath-change
...
link: don't run install_name_tool -change by default
2025-03-13 23:15:47 +08:00
xushiwei
39d28e507d
Merge pull request #1022 from goplus/dependabot/go_modules/compiler/github.com/goplus/gogen-1.16.7
...
build(deps): bump github.com/goplus/gogen from 1.16.6 to 1.16.7 in /compiler
2025-03-13 23:12:38 +08:00
Li Jie
eacb5bc6f8
link: don't run install_name_tool -change by default
2025-03-13 19:55:48 +08:00
dependabot[bot]
19658454bd
build(deps): bump github.com/goplus/gogen in /compiler
...
Bumps [github.com/goplus/gogen](https://github.com/goplus/gogen ) from 1.16.6 to 1.16.7.
- [Release notes](https://github.com/goplus/gogen/releases )
- [Commits](https://github.com/goplus/gogen/compare/v1.16.6...v1.16.7 )
---
updated-dependencies:
- dependency-name: github.com/goplus/gogen
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-03-13 00:17:09 +00:00
xushiwei
02e3a6ae8b
Merge pull request #1018 from cpunion/fix-libunwind
...
runtime: fix libunwind to compatible with homebrew linux
2025-03-04 19:46:35 +08:00
Li Jie
77376087db
ci: optimize model download to avoid Huggingface blocking
...
Download the LLaMA model as a separate job and share it as an artifact to prevent
repeated downloads from Huggingface which could lead to rate limiting or blocking.
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-03-04 11:20:16 +08:00
Li Jie
52a77f9efb
runtime: fix libunwind to compatible with homebrew linux
2025-03-04 10:52:18 +08:00
xushiwei
d483b13107
Merge pull request #1011 from visualfc/deferargs2
...
support defer args
2025-02-28 18:14:16 +08:00
xushiwei
dea4d9df63
Merge pull request #1015 from luoliwoshang/runtime/rmlog
...
runtime:rm log of StartProcess
2025-02-28 18:10:54 +08:00
xushiwei
b7601a7f08
Merge pull request #1016 from luoliwoshang/ctype
...
c:some type & stat's pub
2025-02-28 18:10:27 +08:00
luoliwoshang
2e148d6d0e
c/pub:fix stat
2025-02-28 16:45:42 +08:00
luoliwoshang
8835a1a232
c:some type
2025-02-28 16:18:27 +08:00
visualfc
00e3b6b5a0
_demo/defer
2025-02-27 14:38:25 +08:00
visualfc
3bb51c5d51
ssa: defer load/store func and args
2025-02-27 14:32:21 +08:00
luoliwoshang
433df05858
runtime:rm log of StartProcess
2025-02-27 14:18:44 +08:00
xushiwei
22524b03c8
Merge pull request #1013 from tsingbx/llgo/llcppg.pub
...
add all llcppg.pub for clib
2025-02-27 10:41:44 +08:00
tsingbx
508fa62a48
delete llcppg.pub for debug,llama2,neco,setjmp,sys,syscall
2025-02-26 15:30:45 +08:00
tsingbx
e7f7f98c02
add all llcppg.pub for clib
2025-02-26 15:25:06 +08:00
xushiwei
9edaa8eb93
Merge pull request #1010 from cpunion/fix-empty-content
...
build: fix empty .ll file name generation
2025-02-22 17:46:36 +08:00
Li Jie
32587c1a40
build: fix empty .ll file name generation
2025-02-22 09:25:44 +08:00
xushiwei
019c482d18
Merge pull request #995 from cpunion/fix-llgo-test-crash
...
Build on Go 1.24, compatible with Go version directive 1.20-1.24 in go.mod
2025-02-21 06:04:21 +08:00
Li Jie
ca906d9c71
test: add byte and append coverage
2025-02-19 12:27:46 +08:00
Li Jie
35ba8476b0
runtime: net/textproto/textproto.go overlay don't import llgo runtime
2025-02-19 12:09:03 +08:00
Li Jie
a473901cfd
runtime: patching testing/testing.go for go1.24
2025-02-19 11:46:47 +08:00
Li Jie
b163d71aed
test: 3 attempts to avoid clang errors
2025-02-19 11:35:24 +08:00
Li Jie
d561f1399a
test: test compiler/internal/build with verbose to show clang command line
2025-02-19 11:35:24 +08:00
Li Jie
00406e08fb
ssa: record NeedRuntime, NeedPyInit in Package to compatible multi-packages building
2025-02-19 11:35:24 +08:00
Li Jie
0e4ca910d6
build: building multi packages outputs to temporary path
2025-02-19 11:35:24 +08:00
Li Jie
b00f52472b
build: don't output pkg path
2025-02-19 11:35:24 +08:00
Li Jie
95a6e356ee
build: let llgo build without -o outputs executable
2025-02-19 11:35:24 +08:00
Li Jie
f4da8e8876
runtime: disable godebug unimplemented warnings
2025-02-19 11:35:23 +08:00
Li Jie
1a08a59b49
env: fix devel version name
2025-02-19 11:35:23 +08:00
Li Jie
758ceb791b
compiler: upgrade x/tools 0.30.0
2025-02-19 11:35:23 +08:00
Li Jie
6a1e0084f4
ssa: support len([]func())
2025-02-19 11:35:23 +08:00
Li Jie
e318cab252
compiler: add internal/build tests
2025-02-19 11:35:23 +08:00
Li Jie
6b12547303
ci: filter out uncollected packages
2025-02-19 11:35:23 +08:00
Li Jie
96d6c00815
cl: regenerate test snapshots
2025-02-19 11:35:22 +08:00
Li Jie
7be79d81f9
ssa: uniform byte and uint8 name on different platforms
2025-02-19 11:35:22 +08:00
Li Jie
2be558d554
runtime: reflect.Value.Equal
2025-02-19 11:35:22 +08:00
Li Jie
60fac0a010
ci: test on go1.24
2025-02-19 11:35:21 +08:00
Li Jie
df0f239929
runtime: fix patch for testing
2025-02-17 07:50:37 +08:00
Li Jie
4e1aea4597
ci: run llgo test
2025-02-17 07:50:36 +08:00
xushiwei
60224dd77d
Merge pull request #1003 from cpunion/fix-sleep
...
runtime: fix time.Sleep
2025-02-17 06:15:08 +08:00
xushiwei
ded408f145
Merge pull request #1004 from visualfc/goexit2
...
runtime: goexit use thread key
2025-02-17 06:12:28 +08:00
xushiwei
69deeca321
Merge pull request #1002 from cpunion/fix-global-var-type
...
cl: fix wrong global variable type patching
2025-02-17 06:09:10 +08:00
xushiwei
5e1e7bdad0
Merge pull request #1005 from cpunion/safe-mutex-init
...
runtime: safe mutex initialization
2025-02-17 06:08:21 +08:00
Li Jie
22f4924d8e
runtime: safe mutex initialization
2025-02-16 20:52:22 +08:00
visualfc
8591275eb2
runtime: goexit use thread key
2025-02-16 19:53:38 +08:00
Li Jie
d91bb33178
runtime: fix time.Sleep
2025-02-16 19:25:59 +08:00
Li Jie
d8e782f3f1
cl: fix wrong global variable type patching
2025-02-16 12:53:42 +08:00
xushiwei
51755b8da3
Merge pull request #998 from visualfc/goexit
...
runtime: support Goexit
2025-02-16 08:52:10 +08:00
xushiwei
e5c0aed75e
Merge pull request #997 from cpunion/fix-release
...
Fix release build
2025-02-16 08:44:48 +08:00
visualfc
6d7e984238
runtime: support Goexit
2025-02-16 08:24:33 +08:00
Li Jie
4dcc944f53
ci: lock tonistiigi/binfmt:qemu-v7.0.0-28 to avoid binfmt crash
2025-02-15 19:31:01 +08:00
Li Jie
fbb978e8a5
ci: populate linux sysroot in parallel
2025-02-15 19:30:32 +08:00
Li Jie
46a3a4f7e3
ci: disable populate cache
2025-02-15 19:30:07 +08:00
xushiwei
e74d2b45c0
Merge pull request #996 from xushiwei/q
...
qiniu/x v1.13.12
2025-02-15 18:45:00 +08:00
xushiwei
d40298ac58
qiniu/x v1.13.12
2025-02-15 18:30:57 +08:00
xushiwei
87d7a4862e
Merge pull request #978 from visualfc/llruntime
...
runtime: config hasAltPkg and overlay
2025-02-15 15:26:50 +08:00
visualfc
8be9a560e9
runtime: rm ignoreName
2025-02-15 14:56:59 +08:00
visualfc
0d218bb4b9
runtime: config overlay
2025-02-15 13:25:25 +08:00
visualfc
1b3464b610
runtime: config hasAltPkg and ignoreName
2025-02-15 13:22:28 +08:00
xushiwei
c4e66a104b
Merge pull request #994 from xushiwei/q
...
README: Key modules move into compiler directory
2025-02-15 13:20:19 +08:00
xushiwei
d4eaef6ac8
README: Key modules move into compiler directory
2025-02-15 13:19:38 +08:00
xushiwei
9a634b22a7
Merge pull request #991 from cpunion/update-doc
...
doc: update install instructions
2025-02-15 12:02:45 +08:00
xushiwei
54f5f38637
Merge pull request #946 from cpunion/testing
...
llgo test
2025-02-15 12:01:49 +08:00
Li Jie
21a5180b2f
cl: regenerate test snapshots
2025-02-15 11:18:03 +08:00
Li Jie
8116d34a60
runtime: runtime.Callers, runtime.CallersFrames
2025-02-15 11:18:03 +08:00
Li Jie
c6462cbcc7
ssa: fix type assertion of same type
2025-02-15 11:18:03 +08:00
Li Jie
4e34ce7470
runtime: fix incorrect function signature
2025-02-15 11:18:03 +08:00
Li Jie
c2299818cd
compiler: fix llgo build test
2025-02-14 19:02:35 +08:00
Li Jie
2d06dc5cfe
demo: call println, c.Printf, fmt.Println
2025-02-14 19:02:35 +08:00
Li Jie
5329f28580
runtime: testing runtime
2025-02-14 19:02:32 +08:00
Li Jie
66909b3000
ci: continue on error
2025-02-14 15:56:19 +08:00
Li Jie
ae92904e7d
ssa: show type assertion failed details
2025-02-14 15:56:19 +08:00
Li Jie
70fb5ec7e1
ci: replace setup-go with custom action to avoid cache error and test pre-release go
2025-02-14 15:56:19 +08:00
Li Jie
058f74c12c
deps: add libuv into system deps
2025-02-14 15:56:18 +08:00
Li Jie
3a2d24d7cc
doc: update doc test for installation instructions
2025-02-13 16:16:25 +08:00
Li Jie
49f2f0dbfd
doc: update install instructions
2025-02-13 15:52:11 +08:00
Li Jie
5b216153e9
cl: LLGO_TRACE
2025-02-13 15:47:53 +08:00
Li Jie
43175bb642
build: supports LLGoFiles in patches
2025-02-13 15:47:53 +08:00
Li Jie
c1da220a99
ssa: toType(ssa.TypeParam)
2025-02-13 15:47:53 +08:00
Li Jie
164c3e0e7b
cl: fix null pointer in processing debug location
2025-02-13 15:47:52 +08:00
Li Jie
491a23b21e
cl: don't ignore standard libraries
2025-02-13 15:47:52 +08:00
Li Jie
727ec8a5cf
build: weak syscall.init for syscall imported but not compiled
2025-02-13 15:47:52 +08:00
Li Jie
28b3ec322c
build: show cgo compile errors
2025-02-13 15:47:52 +08:00
Li Jie
38cb89a946
build: show full link errors
2025-02-13 15:47:52 +08:00
Li Jie
b07116f302
build: patch packages supports cgo
2025-02-13 15:47:15 +08:00
Li Jie
623b5a511a
cl: process llgo:skip on const, type declaration, deprecate llgo:skip on import
2025-02-13 15:47:15 +08:00
Li Jie
d5d2d6826f
build: patch package with ID
2025-02-13 15:47:14 +08:00
Li Jie
227f6a4ed7
build: update go/parser/resolve.go (compatible go 1.23)
2025-02-13 15:47:14 +08:00
Li Jie
e23d7082fe
build: overlay testing/testing.go for defer in loop
2025-02-13 15:47:14 +08:00
Li Jie
569a29454e
build: run llgo test
2025-02-13 15:47:14 +08:00
Li Jie
a07f711e22
build: only limit run command to single package
2025-02-13 15:47:13 +08:00
Li Jie
946f304bb2
compiler: add go test command
2025-02-13 15:47:13 +08:00
Li Jie
6b11c100ba
cl: process all go directives
2025-02-13 15:47:13 +08:00
Li Jie
6048693423
ssa: remove unused funcs
2025-02-13 15:47:13 +08:00
Li Jie
a7287754be
compiler: remove unused func llgoRuntimeImported
2025-02-13 15:47:13 +08:00
Li Jie
d9037a7fce
build: remove generated code after link
2025-02-13 15:47:12 +08:00
Li Jie
f06d292382
test: regenerate test files with gentests
2025-02-13 15:47:12 +08:00
Li Jie
85d01d6f28
compiler: make main function normally to compatible multiple main functions in testing mode
2025-02-13 15:47:12 +08:00
xushiwei
5cfeddef73
Merge pull request #988 from visualfc/reflect_typeof
...
runtime/internal/lib/reflect: fix TypeOf check nil
2025-02-13 15:20:24 +08:00
xushiwei
b975e77a63
Merge pull request #990 from cpunion/install-and-devel
...
Install and devel scripts
2025-02-13 15:19:52 +08:00
Li Jie
ba46181365
add llgo.sh for ease development
2025-02-13 13:46:44 +08:00
Li Jie
370604f8eb
add install.sh for local and remote installation
2025-02-13 13:34:45 +08:00
visualfc
368c7d6cda
runtime/internal/lib/reflect: fix TypeOf check closure
2025-02-13 10:28:36 +08:00
xushiwei
0a9dfdc5c0
Merge pull request #986 from goplus/dependabot/go_modules/compiler/github.com/goplus/mod-0.13.17
...
build(deps): bump github.com/goplus/mod from 0.13.16 to 0.13.17 in /compiler
2025-02-12 17:28:06 +08:00
dependabot[bot]
72d0d4e274
build(deps): bump github.com/goplus/mod in /compiler
...
Bumps [github.com/goplus/mod](https://github.com/goplus/mod ) from 0.13.16 to 0.13.17.
- [Release notes](https://github.com/goplus/mod/releases )
- [Commits](https://github.com/goplus/mod/compare/v0.13.16...v0.13.17 )
---
updated-dependencies:
- dependency-name: github.com/goplus/mod
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-02-11 00:29:06 +00:00
xushiwei
d0067ccf68
Merge pull request #981 from visualfc/reflectlite
...
runtime/internal/lib/reflectlite: implement func
2025-02-10 13:55:16 +08:00
xushiwei
409793cb21
Merge pull request #980 from cpunion/fix-env-injection
...
build: fix goreleaser env injection
2025-02-10 13:52:16 +08:00
xushiwei
a9eb65926f
Merge pull request #984 from goplus/dependabot/go_modules/compiler/github.com/qiniu/x-1.13.12
...
build(deps): bump github.com/qiniu/x from 1.13.11 to 1.13.12 in /compiler
2025-02-10 13:51:08 +08:00
dependabot[bot]
18d8677fe6
build(deps): bump github.com/qiniu/x in /compiler
...
Bumps [github.com/qiniu/x](https://github.com/qiniu/x ) from 1.13.11 to 1.13.12.
- [Release notes](https://github.com/qiniu/x/releases )
- [Commits](https://github.com/qiniu/x/compare/v1.13.11...v1.13.12 )
---
updated-dependencies:
- dependency-name: github.com/qiniu/x
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-02-10 00:46:38 +00:00
visualfc
09c8567e39
runtime/internal/lib/reflectlite: implement func
2025-02-07 12:04:54 +08:00
Li Jie
6bbd4b214a
build: fix goreleaser env injection
2025-02-07 09:58:23 +08:00
xushiwei
a345746cbd
Merge pull request #979 from luoliwoshang/clang/presume
...
c/clang:presume location
2025-02-06 17:00:32 +08:00
luoliwoshang
0a0bb128d6
c/clang:presume location
2025-02-06 16:37:07 +08:00
xushiwei
29ec3014e7
Merge pull request #911 from visualfc/reflect.conv
...
internal/lib/reflect: convertOp
2025-02-05 20:12:51 +08:00
visualfc
9ddd4d4161
compiler/cl/_testgo: reflectconv
2025-02-05 16:13:29 +08:00
visualfc
3caae31374
internal/runtime: pointer set abi.KindDirectIface
2025-02-05 15:20:20 +08:00
visualfc
b69abd1058
internal/runtime: find type
2025-02-05 15:20:20 +08:00
visualfc
114c6bd6fc
internal/lib/reflect: fix call method
2025-02-05 15:20:20 +08:00
visualfc
d81c5e750d
internal/runtime: impl ifaceE2I
2025-02-05 15:20:20 +08:00
visualfc
281d29a100
internal/lib/reflect: DeepEqual
2025-02-05 15:20:20 +08:00
visualfc
46492009a1
internal/lib/reflect: specialChannelAssignability
2025-02-05 15:20:20 +08:00
visualfc
ec549a6a25
internal/lib/reflect: value.convert check func
2025-02-05 15:20:20 +08:00
visualfc
71766d9c55
ssa/abi: StructName not pub
2025-02-05 15:20:20 +08:00
visualfc
d2d8bd550a
internal/lib/reflect: fix Int/Uint/Float flagIndir
2025-02-05 15:20:20 +08:00
visualfc
0c2f6c46f6
internal/runtime: newPointer set KindDirectIface
2025-02-05 15:20:20 +08:00
visualfc
c90b93c1b7
internal/lib/reflect: convertOp
2025-02-05 15:20:20 +08:00
xushiwei
faef4fffab
Merge pull request #977 from visualfc/test_debug
...
compiler/ssa: test debug check verbose
2025-02-05 12:19:52 +08:00
visualfc
8e8b97f623
compiler/ssa: test debug check verbose
2025-02-05 10:07:55 +08:00
xushiwei
e23d18dab8
Merge pull request #976 from visualfc/ci
...
ci: go test remove -v
2025-02-05 09:50:21 +08:00
visualfc
3a0d1466cc
ci: go test remove -v
2025-02-05 09:32:42 +08:00
xushiwei
83dd77f4c4
Merge pull request #974 from cpunion/fix-doc-links
...
Fix doc links
2025-02-04 14:53:32 +08:00
xushiwei
c601c992c1
Merge pull request #975 from visualfc/namedslice
...
compiler/cl: fix named slice type
2025-02-04 14:52:46 +08:00
visualfc
5727761551
compiler/cl: fix named slice type
2025-02-03 20:13:57 +08:00
Li Jie
08365721de
test: increase test times to try to avoid clang error
2025-02-03 18:47:24 +08:00
Li Jie
692c3542d9
doc: update links
2025-02-03 18:26:41 +08:00
Li Jie
60dc1f7d75
ci: verify markdown links by lychee
2025-02-03 18:26:16 +08:00
xushiwei
e5ff33fcc6
Merge pull request #969 from cpunion/find-llgo-root
...
test: retry failed test to avoid clang error
2025-02-01 21:54:50 +08:00
xushiwei
c60979fff7
Merge pull request #970 from xushiwei/q
...
README: C/C++, ObjC, Swift
2025-02-01 21:10:38 +08:00
xushiwei
961ad6ebca
README: C/C++, ObjC, Swift
2025-02-01 21:00:01 +08:00
Li Jie
f18237a005
test: retry llgo test to avoid clang error
2025-02-01 20:56:55 +08:00
xushiwei
cba93e61b4
Merge pull request #960 from visualfc/instnamed
...
ssa: abi.NamedName for instance named
2025-02-01 19:23:25 +08:00
xushiwei
e0a6e5d2f9
Merge pull request #968 from cpunion/find-llgo-root
...
Find llgo root
2025-02-01 19:01:34 +08:00
Li Jie
a9ee323760
test: disable log and output to speed up testing
2025-02-01 14:11:46 +08:00
Li Jie
977db86700
env: warning and fallback if LLGO_ROOT is invalid
2025-02-01 14:11:46 +08:00
Li Jie
93d36d40d8
env: fix version
2025-02-01 14:11:46 +08:00
Li Jie
cabc7ffca8
env: find llgo root for development
2025-02-01 14:11:46 +08:00
Li Jie
521b70c715
test: llgo clean, llgo cmptest, llgo cmptest -gen
2025-02-01 14:11:46 +08:00
Li Jie
b6c5503c5b
test: chore/llgen
2025-02-01 14:11:46 +08:00
Li Jie
e7e2ba4790
test: test llgo run -v
2025-02-01 14:11:45 +08:00
Li Jie
8749923f1a
test: make cmd testable
2025-02-01 14:11:45 +08:00
Li Jie
25a3e19384
ci: update codecov ignore config
2025-02-01 14:11:40 +08:00
visualfc
b6b686665a
compiler/cl: inst named stable sort
2025-02-01 13:52:10 +08:00
visualfc
4f5468469b
compiler/cl/_testgo: add tpinst
2025-02-01 12:28:09 +08:00
visualfc
7bc7f23125
ssa: abi.NamedName for instance named
2025-02-01 10:29:35 +08:00
xushiwei
25ed652fc0
Merge pull request #966 from visualfc/reflect_go123
...
runtime: fix reflect type for go1.23
2025-02-01 03:39:45 +08:00
xushiwei
cc2913352a
Merge pull request #955 from visualfc/conv
...
ssa: fix cvtType check types.Alias
2025-01-30 11:59:35 +08:00
visualfc
ad796ebbec
compiler: fix build go1.22 for GODEBUG=gotypesalias=1
2025-01-29 19:07:37 +08:00
visualfc
edd561f8ba
runtime: fix reflect type for go1.23
2025-01-29 18:58:36 +08:00
xushiwei
0b1c4fb54f
Merge pull request #964 from goplus/dependabot/go_modules/compiler/github.com/goplus/gogen-1.16.6
...
build(deps): bump github.com/goplus/gogen from 1.16.5 to 1.16.6 in /compiler
2025-01-23 13:44:19 +08:00
dependabot[bot]
9f4eb4f7db
build(deps): bump github.com/goplus/gogen in /compiler
...
Bumps [github.com/goplus/gogen](https://github.com/goplus/gogen ) from 1.16.5 to 1.16.6.
- [Release notes](https://github.com/goplus/gogen/releases )
- [Commits](https://github.com/goplus/gogen/compare/v1.16.5...v1.16.6 )
---
updated-dependencies:
- dependency-name: github.com/goplus/gogen
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-22 01:15:38 +00:00
xushiwei
f6e3a3917e
Merge pull request #959 from luoliwoshang/sys/ExecInChild
...
syscall(linux): forkAndExecInChild
2025-01-21 07:30:48 +08:00
luoliwoshang
1b536bf5f8
syscall(linux):use clone as go instead fork
2025-01-20 08:30:02 +00:00
xushiwei
e3afdb6c02
Merge pull request #962 from cpunion/fix-abi
...
fix(ssa): fix incorrectly ABI for uninstantiated generic methods
2025-01-18 23:55:27 +08:00
Li Jie
918b36e28f
fix(ssa): fix incorrectly generated ABI for uninstantiated generic methods
2025-01-17 20:36:04 +08:00
luoliwoshang
ce26637410
demo:command run
2025-01-17 08:30:07 +00:00
luoliwoshang
2053c72008
c/os:dup3
2025-01-16 11:00:18 +00:00
luoliwoshang
275bde6461
syscall(linux): forkAndExecInChild
2025-01-16 10:59:38 +00:00
luoliwoshang
f85382edd4
c/syscall: zsysnum
2025-01-14 14:09:52 +00:00
xushiwei
e016e92c41
Merge pull request #949 from goplus/dependabot/go_modules/compiler/github.com/goplus/gogen-1.16.5
...
build(deps): bump github.com/goplus/gogen from 1.16.4 to 1.16.5 in /compiler
2025-01-13 19:48:20 +08:00
dependabot[bot]
2594b8e3f9
build(deps): bump github.com/goplus/gogen in /compiler
...
Bumps [github.com/goplus/gogen](https://github.com/goplus/gogen ) from 1.16.4 to 1.16.5.
- [Release notes](https://github.com/goplus/gogen/releases )
- [Commits](https://github.com/goplus/gogen/compare/v1.16.4...v1.16.5 )
---
updated-dependencies:
- dependency-name: github.com/goplus/gogen
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-13 11:08:50 +00:00
xushiwei
1e1ef594c8
Merge pull request #951 from xushiwei/q
...
xtool/clang: disable types
2025-01-13 19:08:05 +08:00
xushiwei
01c660faba
Merge pull request #952 from goplus/dependabot/go_modules/compiler/github.com/goplus/mod-0.13.16
...
build(deps): bump github.com/goplus/mod from 0.13.15 to 0.13.16 in /compiler
2025-01-13 19:07:35 +08:00
visualfc
9f76237705
ssa: fix cvtType check types.Alias
2025-01-13 12:38:15 +08:00
dependabot[bot]
59d3e3f3da
build(deps): bump github.com/goplus/mod in /compiler
...
Bumps [github.com/goplus/mod](https://github.com/goplus/mod ) from 0.13.15 to 0.13.16.
- [Release notes](https://github.com/goplus/mod/releases )
- [Commits](https://github.com/goplus/mod/compare/v0.13.15...v0.13.16 )
---
updated-dependencies:
- dependency-name: github.com/goplus/mod
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-13 01:05:42 +00:00
xushiwei
e5dd237f12
xtool/clang: disable types
2025-01-13 09:05:19 +08:00
xushiwei
e9729bea7e
Merge pull request #945 from goplus/dependabot/go_modules/compiler/github.com/goplus/mod-0.13.15
...
build(deps): bump github.com/goplus/mod from 0.13.13 to 0.13.15 in /compiler
2025-01-12 09:11:46 +08:00
dependabot[bot]
d46b17d8a0
build(deps): bump github.com/goplus/mod in /compiler
...
Bumps [github.com/goplus/mod](https://github.com/goplus/mod ) from 0.13.13 to 0.13.15.
- [Release notes](https://github.com/goplus/mod/releases )
- [Commits](https://github.com/goplus/mod/compare/v0.13.13...v0.13.15 )
---
updated-dependencies:
- dependency-name: github.com/goplus/mod
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-11 19:36:26 +00:00
xushiwei
383d25226e
Update dependabot.yml
2025-01-12 03:35:27 +08:00
xushiwei
745eff0783
Merge pull request #943 from goplus/dependabot/github_actions/actions/cache-4
...
build(deps): bump actions/cache from 3 to 4
2025-01-10 09:59:23 +08:00
dependabot[bot]
ac301045b9
build(deps): bump actions/cache from 3 to 4
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-10 00:58:56 +00:00
xushiwei
e1f3ca8172
Merge pull request #929 from cpunion/go123
...
Separate compiler, runtime and llgo library
2025-01-09 20:13:35 +08:00
Li Jie
4ff4ceeb22
ssa: show detail message of runtime failed
2025-01-09 19:50:01 +08:00
Li Jie
4126992a8f
compiler: remove completed todo
2025-01-09 19:39:12 +08:00
Li Jie
fd99f63bd6
ci: hello world testing with different version declarations in go.mod and go versions
2025-01-09 18:55:22 +08:00
Li Jie
46dc7c3a77
test: increase test coverage
2025-01-09 18:55:22 +08:00
Li Jie
a8cb551465
env: add tests for codecov
2025-01-09 18:55:21 +08:00
Li Jie
5a5674809c
ssa: Builder.TypeName processes types.Alias
2025-01-09 16:59:51 +08:00
Li Jie
761e8a2ac6
compiler: make compiler working on go 1.23 project
2025-01-09 16:11:39 +08:00
Li Jie
dfa7effa14
ci: config release build
2025-01-09 15:39:03 +08:00
Li Jie
09c022e209
cmd: fix return value with arguments
2025-01-09 15:32:27 +08:00
Li Jie
8666a75161
ci: remove unused python libraries installation step
2025-01-09 11:58:24 +08:00
Li Jie
68018d8d04
runtime: clean demo
2025-01-09 09:05:45 +08:00
Li Jie
3d2c014801
cl: clean test
2025-01-09 00:47:45 +08:00
Li Jie
4f9c341103
ci: update codecov ignore
2025-01-09 00:23:30 +08:00
Li Jie
563f03554f
test: llgo commands
2025-01-09 00:09:47 +08:00
Li Jie
219376044a
ci: fix llgo workflow name
2025-01-08 23:23:58 +08:00
Li Jie
591dac8b41
compiler: remove unused packages
2025-01-08 23:02:46 +08:00
Li Jie
2bc96ade33
lldb: test lldb cross go compilers
2025-01-08 22:16:03 +08:00
Li Jie
95c4456ccc
env: get GOROOT from env variable or go env GOROOT
2025-01-08 22:16:03 +08:00
Li Jie
6e6b8b404f
runtime: rename clite conflicts function names
2025-01-08 22:16:02 +08:00
Li Jie
27052c21be
ci: test lldb last
2025-01-08 22:16:02 +08:00
Li Jie
ec744f7385
chore: move compiler/chore/_xtool to _xtool
2025-01-08 22:16:02 +08:00
Li Jie
d8c5105c91
ci: set LLGO_ROOT for doc test
2025-01-08 22:16:01 +08:00
Li Jie
acd5fb19f5
ci: rename llgo test job name
2025-01-08 15:55:38 +08:00
Li Jie
52ac486814
doc: fix llgo installation
2025-01-08 15:40:11 +08:00
Li Jie
a64b32bf9c
ci: compile go with go1.23, test llgo with go 1.20-1.23
2025-01-08 15:36:41 +08:00
Li Jie
b299800e64
compiler: move _lldb into compiler/
2025-01-08 15:22:09 +08:00
Li Jie
60c430abad
test: regenerate test snapshots with gentests
2025-01-08 15:19:38 +08:00
Li Jie
255cce4f9a
test: move cchan/cchansel into runtime/_test
2025-01-08 15:03:58 +08:00
Li Jie
1ed99c2574
cl: isAny compatible alias
2025-01-08 14:59:02 +08:00
Li Jie
64b54d4380
ssa: make alias working in go 1.22
2025-01-08 14:59:02 +08:00
Li Jie
6170973b48
compiler: build separation runtime with clite
2025-01-08 14:59:01 +08:00
Li Jie
1172e5bdce
build: separate compiler and libs
2025-01-08 14:59:01 +08:00
Li Jie
b0123567cd
ci: ignore code coverage of llgo libs
2025-01-08 14:59:00 +08:00
Li Jie
81598621e8
ci: codecov report excludes llgo library
2025-01-08 14:59:00 +08:00
Li Jie
239ac496b2
test: map/slice clear
2025-01-08 14:59:00 +08:00
Li Jie
76fb91619a
demo: workaround for reflect abi initialization on go@1.23
2025-01-08 14:58:59 +08:00
Li Jie
e3a2d43ffa
runtime: add missing SliceClear
2025-01-08 14:58:59 +08:00
Li Jie
b3f4716616
runtime: patch internal/filepathlite
2025-01-08 14:58:59 +08:00
Li Jie
c602038597
demo: don't use symlinks for x/tools compatible
2025-01-08 14:58:59 +08:00
Li Jie
03b469212e
feat: upgrade to x/tools 0.28
2025-01-08 14:58:59 +08:00
xushiwei
db3f6e077e
Merge pull request #941 from cpunion/fix-doc-verify
...
doc: fix macos installation doc verify
2025-01-08 08:58:31 +08:00
Li Jie
06816c51a5
doc: fix macos installation doc verify
2025-01-07 21:28:14 +08:00
xushiwei
9e9e8e82b2
Merge pull request #936 from cpunion/optional-llgo-root
...
build: make llgo root usage optional for runtime loading
2025-01-07 19:47:40 +08:00
xushiwei
031d4ebedc
Merge pull request #937 from MeteorsLiu/main
...
README: fix dependences requirement for macOS
2025-01-07 18:40:03 +08:00
xushiwei
3446715af8
Merge pull request #934 from cpunion/fix-build
...
build.ParseArgs returns new slices to fix wrong patterns with flags appending
2025-01-07 18:07:13 +08:00
Rick Guo
c7e68dab62
README: fix dependences for macOS
2025-01-06 17:38:36 +08:00
Li Jie
7093ced2d8
build: make llgo root usage optional for runtime loading
...
When github.com/goplus/llgo is imported in go.mod, use the user-specified
version instead of LLGoROOT. This allows users to upgrade llgo via go.mod
while maintaining backward compatibility for cases without explicit imports.
Note: This is a temporary solution. The runtime's dependency on
github.com/goplus/llgo/c/* needs to be addressed in future improvements.
2025-01-06 16:36:16 +08:00
Li Jie
179f4dfe22
build: ParseArgs return new slices
2025-01-06 10:10:11 +08:00
xushiwei
03517ce22e
Merge pull request #933 from cpunion/independent
...
env: allow compiling code outside llgo directory
2025-01-05 07:10:29 +08:00
Li Jie
290f99b4d1
env: allow compiling code outside llgo directory
2025-01-04 23:40:13 +08:00
xushiwei
7f10bc2a1b
Merge pull request #930 from cpunion/panic-stacktrace
...
runtime: show stacktrace when panic
2025-01-03 12:04:12 +08:00
Li Jie
9cb48003b0
ci: add libunwind-dev on ubuntu
2025-01-02 23:27:45 +08:00
Li Jie
6df961292d
doc: install libunwind-dev on ubuntu
2025-01-02 23:27:45 +08:00
Li Jie
65f855b251
runtime: show stacktrace when panic
2025-01-02 23:27:41 +08:00
xushiwei
5131881bf2
Merge pull request #928 from goplus/dependabot/go_modules/github.com/goplus/llvm-0.8.1
...
build(deps): bump github.com/goplus/llvm from 0.8.0 to 0.8.1
2024-12-31 19:19:16 +08:00
dependabot[bot]
8fbad90e9d
build(deps): bump github.com/goplus/llvm from 0.8.0 to 0.8.1
...
Bumps [github.com/goplus/llvm](https://github.com/goplus/llvm ) from 0.8.0 to 0.8.1.
- [Release notes](https://github.com/goplus/llvm/releases )
- [Commits](https://github.com/goplus/llvm/compare/v0.8.0...v0.8.1 )
---
updated-dependencies:
- dependency-name: github.com/goplus/llvm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-12-31 11:06:15 +00:00
xushiwei
d0aceebaad
Merge pull request #926 from goplus/dependabot/go_modules/github.com/goplus/gogen-1.16.4
...
build(deps): bump github.com/goplus/gogen from 1.16.3 to 1.16.4
2024-12-31 13:57:06 +08:00
dependabot[bot]
01b6680000
build(deps): bump github.com/goplus/gogen from 1.16.3 to 1.16.4
...
Bumps [github.com/goplus/gogen](https://github.com/goplus/gogen ) from 1.16.3 to 1.16.4.
- [Release notes](https://github.com/goplus/gogen/releases )
- [Commits](https://github.com/goplus/gogen/compare/v1.16.3...v1.16.4 )
---
updated-dependencies:
- dependency-name: github.com/goplus/gogen
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-12-31 05:40:12 +00:00