main: add -internal-nodwarf flag

This can be useful during development to avoid generating debug
information in IR.
This commit is contained in:
Ayke van Laethem
2023-06-01 18:58:26 +02:00
committed by Ron Evans
parent 92d9f856ab
commit 4a240827cb
3 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -175,7 +175,7 @@ func Build(pkgName, outpath, tmpdir string, config *compileopts.Config) (BuildRe
AutomaticStackSize: config.AutomaticStackSize(),
DefaultStackSize: config.StackSize(),
NeedsStackObjects: config.NeedsStackObjects(),
Debug: true,
Debug: !config.Options.SkipDWARF, // emit DWARF except when -internal-nodwarf is passed
}
// Load the target machine, which is the LLVM object that contains all