Skip to content

Commit d3d19a9

Browse files
Crash in gen command fixed.
1 parent da2320f commit d3d19a9

File tree

4 files changed

+3
-1
lines changed

4 files changed

+3
-1
lines changed

cmd_build.go

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ func gopyRunCmdBuild(cmdr *commander.Command, args []string) error {
5252
}
5353

5454
cfg := NewBuildCfg(&cmdr.Flag)
55+
cfg.Symbols = cmdr.Flag.Lookup("symbols").Value.Get().(bool)
5556

5657
bind.NoWarn = cfg.NoWarn
5758
bind.NoMake = cfg.NoMake

cmd_exe.go

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ func gopyRunCmdExe(cmdr *commander.Command, args []string) error {
6565
}
6666

6767
cfg := NewBuildCfg(&cmdr.Flag)
68+
cfg.Symbols = cmdr.Flag.Lookup("symbols").Value.Get().(bool)
6869

6970
var (
7071
exclude = cmdr.Flag.Lookup("exclude").Value.Get().(string)

cmd_pkg.go

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ func gopyRunCmdPkg(cmdr *commander.Command, args []string) error {
6363
}
6464

6565
cfg := NewBuildCfg(&cmdr.Flag)
66+
cfg.Symbols = cmdr.Flag.Lookup("symbols").Value.Get().(bool)
6667

6768
var (
6869
exclude = cmdr.Flag.Lookup("exclude").Value.Get().(string)

main.go

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ func NewBuildCfg(flagSet *flag.FlagSet) *BuildCfg {
4545
cfg.NoWarn = flagSet.Lookup("no-warn").Value.Get().(bool)
4646
cfg.NoMake = flagSet.Lookup("no-make").Value.Get().(bool)
4747
cfg.PkgPrefix = flagSet.Lookup("package-prefix").Value.Get().(string)
48-
cfg.Symbols = flagSet.Lookup("symbols").Value.Get().(bool)
4948
cfg.NoPyExceptions = flagSet.Lookup("no-exceptions").Value.Get().(bool)
5049
cfg.ModPathGoErr2PyEx = flagSet.Lookup("gomod-2pyex").Value.Get().(string)
5150
cfg.UsePyTuple4VE = flagSet.Lookup("use-pytuple-4ve").Value.Get().(bool)

0 commit comments

Comments
 (0)