3390 Commits

Author SHA1 Message Date
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