- Add CACHE HIT/MISS verbose output to build.go
- Create test/buildcache with 6 snapshot-based test scenarios:
1. First build (all CACHE MISS)
2. Second build (deps CACHE HIT)
3. Force rebuild with -a (all CACHE MISS)
4. Dependency change invalidates cache
5. Partial cache clear (dep2 only)
6. Partial cache clear (dep2 and dep3)
- Tests run for both native and WASM builds (12 tests total)
- Add dev/build_iwasm.sh to build iwasm with CI-compatible options
- test.sh auto-builds iwasm if not found in llgo cache
- All build outputs go to temp directory to keep source clean
- Add explicit error checking for all build and run commands
- Update CI workflow and local_ci.sh to use test.sh
Closes#1526
Remove conditional checks in _llgo_ensure_llgo_cli and always
run 'go install -tags=dev ./cmd/llgo' on every invocation.
This ensures the dev build is always used regardless of whether
the binary exists or files have changed.
Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: cpunion <8459+cpunion@users.noreply.github.com>
This fixes issue #1518 where dev/llgo.sh would skip rebuilding
with the dev tag when the llgo binary already exists.
Now dev/_llgo_setup.sh uses 'go install -tags=dev ./cmd/llgo'
instead of 'go install ./cmd/llgo' to ensure the dev build
is always used.
Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: cpunion <8459+cpunion@users.noreply.github.com>