Merged
Conversation
luoliwoshang
commented
Jun 11, 2025
Comment on lines
11
to
13
| const ( | ||
| LLGoFiles = "_wrap/debug.c" | ||
| LLGoFiles = "$(llvm-config --cflags): _wrap/debug.cpp" | ||
| ) |
Member
Author
There was a problem hiding this comment.
libunwind.h will not found ,so when compile linux,to add $(llvm-config --cflags) for compile.
clang++ -emit-llvm -S -o /home/runner/.cache/go-build/02/0293ed8bec74bf22083a36df5d607e76abe301dd598dc3f1ed1c5630e5b817b8-ddebug.cpp.ll -c /home/runner/work/llgo/llgo/runtime/internal/clite/debug/_wrap/debug.cpp
/home/runner/work/llgo/llgo/runtime/internal/clite/debug/_wrap/debug.cpp:10:10: fatal error: 'libunwind.h' file not found84f64bb to
6ed092e
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1147 +/- ##
=======================================
Coverage 86.64% 86.64%
=======================================
Files 29 29
Lines 7343 7343
=======================================
Hits 6362 6362
Misses 914 914
Partials 67 67 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
luoliwoshang
added a commit
to luoliwoshang/llcppg
that referenced
this pull request
Jun 12, 2025
MeteorsLiu
pushed a commit
to goplus/llcppg
that referenced
this pull request
Jun 12, 2025
* deps:work with goplus/llgo#1147 * ci:libunwind & libc++ in linux * ci:main llgo 26aaa65c1d58449fc5de1d7004df92c9e45a6136 * revert testcase * revert testcase
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixed #1146
with the case for #1146,can run normally
git:(main) llgo run . Hello world Hello world 12todo: update https://github.com/goplus/lib/blob/v0.2.0/py/_pyg/module.c to use extern "C" to ensure symbol name
use the clang++ to compiler,when compile with use a wrap .c's file like runtime/internal/clite/bitcast/bitcast.go ,will got follow
this question is when use clang++ to compile .c file,the symbol name is mangled.
the correspoding .ll like this , the function name is mangled
so we need make these c file to cpp file ,and with a extern "C" to make symbol correct with .c to .cpp
cast.c->cast.cpp.c,we make the clang++ use-x cmode to compile it to ir,we can get a no mangled symbol.