mirror of
https://github.com/goplus/llgo.git
synced 2025-10-05 07:37:01 +08:00
set buildmode to exe for non-build mode
This commit is contained in:
@@ -113,8 +113,6 @@ func UpdateBuildConfig(conf *build.Config) error {
|
|||||||
if err := UpdateConfig(conf); err != nil {
|
if err := UpdateConfig(conf); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate and set build mode
|
|
||||||
if err := build.ValidateBuildMode(BuildMode); err != nil {
|
if err := build.ValidateBuildMode(BuildMode); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@@ -195,6 +195,9 @@ func Do(args []string, conf *Config) ([]Package, error) {
|
|||||||
if conf.AppExt == "" {
|
if conf.AppExt == "" {
|
||||||
conf.AppExt = defaultAppExt(conf)
|
conf.AppExt = defaultAppExt(conf)
|
||||||
}
|
}
|
||||||
|
if conf.BuildMode == "" {
|
||||||
|
conf.BuildMode = BuildModeExe
|
||||||
|
}
|
||||||
// Handle crosscompile configuration first to set correct GOOS/GOARCH
|
// Handle crosscompile configuration first to set correct GOOS/GOARCH
|
||||||
forceEspClang := conf.ForceEspClang || conf.Target != ""
|
forceEspClang := conf.ForceEspClang || conf.Target != ""
|
||||||
export, err := crosscompile.Use(conf.Goos, conf.Goarch, conf.Target, IsWasiThreadsEnabled(), forceEspClang)
|
export, err := crosscompile.Use(conf.Goos, conf.Goarch, conf.Target, IsWasiThreadsEnabled(), forceEspClang)
|
||||||
|
Reference in New Issue
Block a user