mirror of
https://github.com/goplus/llgo.git
synced 2025-09-26 19:51:21 +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 {
|
||||
return err
|
||||
}
|
||||
|
||||
// Validate and set build mode
|
||||
if err := build.ValidateBuildMode(BuildMode); err != nil {
|
||||
return err
|
||||
}
|
||||
|
@@ -195,6 +195,9 @@ func Do(args []string, conf *Config) ([]Package, error) {
|
||||
if conf.AppExt == "" {
|
||||
conf.AppExt = defaultAppExt(conf)
|
||||
}
|
||||
if conf.BuildMode == "" {
|
||||
conf.BuildMode = BuildModeExe
|
||||
}
|
||||
// Handle crosscompile configuration first to set correct GOOS/GOARCH
|
||||
forceEspClang := conf.ForceEspClang || conf.Target != ""
|
||||
export, err := crosscompile.Use(conf.Goos, conf.Goarch, conf.Target, IsWasiThreadsEnabled(), forceEspClang)
|
||||
|
Reference in New Issue
Block a user