build: support multiple link files in a package

This commit is contained in:
xushiwei
2024-05-08 18:57:14 +08:00
parent b0b38c02b2
commit 879e4a0061
11 changed files with 164 additions and 42 deletions

View File

@@ -4,7 +4,7 @@
"cd build.dir",
"../sqlite/configure",
"make",
"clang -emit-llvm -S -o sqlite3.ll -c sqlite3.c",
"$LLGO_LLVM_ROOT/bin/llvm-link -o ../llgo_autogen.bc ../sqlite.ll sqlite3.ll",
"clang -emit-llvm -S -o ../llgo_autogen.ll -c sqlite3.c",
"cd ..; rm llgo_autogen.lla; zip llgo_autogen.lla llgo_autogen.ll sqlite.ll",
]
}