add -nobounds (similar to -gcflags=-B)

This commit is contained in:
Damian Gryski
2025-04-14 17:01:03 -07:00
committed by Ron Evans
parent 133e32c1c4
commit 0fdf08d14f
5 changed files with 9 additions and 0 deletions
+1
View File
@@ -214,6 +214,7 @@ func Build(pkgName, outpath, tmpdir string, config *compileopts.Config) (BuildRe
MaxStackAlloc: config.MaxStackAlloc(),
NeedsStackObjects: config.NeedsStackObjects(),
Debug: !config.Options.SkipDWARF, // emit DWARF except when -internal-nodwarf is passed
Nobounds: config.Options.Nobounds,
PanicStrategy: config.PanicStrategy(),
}