archInit(&thearch)
Ctxt = obj.Linknew(thearch.LinkArch)
- Ctxt.DebugInfo = debuginfo
Ctxt.DiagFunc = yyerror
Ctxt.Bso = bufio.NewWriter(os.Stdout)
flag.StringVar(&buildid, "buildid", "", "record `id` as the build id in the export metadata")
flag.BoolVar(&pure_go, "complete", false, "compiling complete package (no C or assembly)")
flag.StringVar(&debugstr, "d", "", "print debug information about items in `list`")
+ flag.BoolVar(&flagDWARF, "dwarf", true, "generate DWARF symbols")
obj.Flagcount("e", "no limit on number of errors reported", &Debug['e'])
obj.Flagcount("f", "debug stack frames", &Debug['f'])
obj.Flagcount("h", "halt on error", &Debug['h'])
Ctxt.Debugasm = Debug_asm
Ctxt.Debugvlog = Debug_vlog
+ if flagDWARF {
+ Ctxt.DebugInfo = debuginfo
+ }
if flag.NArg() < 1 {
usage()