Added build statistics
This commit is contained in:
parent
12894dbcc5
commit
37afbde0da
6 changed files with 54 additions and 18 deletions
|
@ -14,9 +14,12 @@ const (
|
|||
)
|
||||
|
||||
var (
|
||||
// Shows the assembly instructions at the end of the compilation.
|
||||
// Shows the assembly instructions at the end.
|
||||
Assembler bool
|
||||
|
||||
// Shows statistics at the end.
|
||||
Statistics bool
|
||||
|
||||
// Calculates the result of operations on constants at compile time.
|
||||
ConstantFold bool
|
||||
|
||||
|
@ -33,6 +36,7 @@ var (
|
|||
// Reset resets the configuration to its default values.
|
||||
func Reset() {
|
||||
Assembler = false
|
||||
Statistics = false
|
||||
ConstantFold = true
|
||||
Dry = false
|
||||
TargetArch = runtime.GOARCH
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue