mirror of
https://github.com/goplus/llgo.git
synced 2025-09-26 19:51:21 +08:00
Merge pull request #1301 from luoliwoshang/xtensa/o0
llgo/embed:compile with `Oz` & link with `-s` for embed target to reduce size
This commit is contained in:
@@ -481,9 +481,8 @@ func UseTarget(targetName string) (export Export, err error) {
|
||||
envs := buildEnvMap(env.LLGoROOT())
|
||||
|
||||
// Convert LLVMTarget, CPU, Features to CCFLAGS/LDFLAGS
|
||||
var ccflags []string
|
||||
var ldflags []string
|
||||
|
||||
ldflags := []string{"-S"}
|
||||
ccflags := []string{"-Oz"}
|
||||
cflags := []string{"-Wno-override-module", "-Qunused-arguments", "-Wno-unused-command-line-argument"}
|
||||
if config.LLVMTarget != "" {
|
||||
cflags = append(cflags, "--target="+config.LLVMTarget)
|
||||
|
Reference in New Issue
Block a user