compiler: split LLGO_DEBUG into LLGO_DEBUG, LLGO_DBG_SYMBOLS, disableInline

This commit is contained in:
Li Jie
2025-02-22 09:31:41 +08:00
parent 9f38338c58
commit 8cd5924bf2
7 changed files with 45 additions and 27 deletions

View File

@@ -3,7 +3,7 @@
### Build with debug info
```shell
LLGO_DEBUG=1 llgo build -o cl/_testdata/debug/out ./cl/_testdata/debug
LLGO_DEBUG_SYMBOLS=1 llgo build -o cl/_testdata/debug/out ./cl/_testdata/debug
```
### Debug with lldb

View File

@@ -44,7 +44,7 @@ build_project() {
return 1
fi
LLGO_DEBUG=1 llgo build -o "debug.out" . || {
LLGO_DEBUG_SYMBOLS=1 llgo build -o "debug.out" . || {
local ret=$?
cd "$current_dir" || return
return $ret