mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-09 21:43:40 +00:00
add Settings to debug.BuildInfo
Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>
This commit is contained in:
@@ -33,9 +33,17 @@ func ReadBuildInfo() (info *BuildInfo, ok bool) {
|
|||||||
// BuildInfo represents the build information read from
|
// BuildInfo represents the build information read from
|
||||||
// the running binary.
|
// the running binary.
|
||||||
type BuildInfo struct {
|
type BuildInfo struct {
|
||||||
Path string // The main package path
|
Path string // The main package path
|
||||||
Main Module // The module containing the main package
|
Main Module // The module containing the main package
|
||||||
Deps []*Module // Module dependencies
|
Deps []*Module // Module dependencies
|
||||||
|
Settings []BuildSetting
|
||||||
|
}
|
||||||
|
|
||||||
|
type BuildSetting struct {
|
||||||
|
// Key and Value describe the build setting.
|
||||||
|
// Key must not contain an equals sign, space, tab, or newline.
|
||||||
|
// Value must not contain newlines ('\n').
|
||||||
|
Key, Value string
|
||||||
}
|
}
|
||||||
|
|
||||||
// Module represents a module.
|
// Module represents a module.
|
||||||
|
|||||||
Reference in New Issue
Block a user