internal/build:compile with c mode,when c file
This commit is contained in:
@@ -9,8 +9,6 @@
|
||||
#include <dlfcn.h>
|
||||
#include <libunwind.h>
|
||||
|
||||
extern "C" {
|
||||
|
||||
void *llgo_address() {
|
||||
return __builtin_return_address(0);
|
||||
}
|
||||
@@ -40,6 +38,4 @@ void llgo_stacktrace(int skip, void *ctx, int (*fn)(void *ctx, void *pc, void *o
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
LLGoFiles = "$(llvm-config --cflags): _wrap/debug.cpp"
|
||||
LLGoFiles = "$(llvm-config --cflags): _wrap/debug.c"
|
||||
)
|
||||
|
||||
type Info struct {
|
||||
|
||||
Reference in New Issue
Block a user