Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

env: allow compiling code outside llgo directory #933

Merged
merged 1 commit into from
Jan 4, 2025

Conversation

cpunion
Copy link
Contributor

@cpunion cpunion commented Jan 4, 2025

Fix: #892 #651, need update release distribution and installation to use it.

Supports:

  • env LLGO_ROOT: set to llgo root dir that can find go.mod contains module github.com/goplus/llgo\n
  • Directory that contains the executable in bin/, and also has go.mod contains module github.com/goplus/llgo\n
  • Will support go build -ldflags "-X github.com/goplus/llgo/compiler/internal/env.LLGO_ROOT=/path/to" after separate compiler and library

And it will support separation runtime/patches from llgo library.

Copy link

codecov bot commented Jan 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.65%. Comparing base (7f10bc2) to head (290f99b).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #933   +/-   ##
=======================================
  Coverage   97.65%   97.65%           
=======================================
  Files          22       22           
  Lines        6313     6313           
=======================================
  Hits         6165     6165           
  Misses        128      128           
  Partials       20       20           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@xushiwei xushiwei merged commit 03517ce into goplus:main Jan 4, 2025
10 checks passed
@cpunion cpunion deleted the independent branch January 5, 2025 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LLGo can't compile hello world in an independent environment
2 participants