mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-11 14:39:30 +08:00
trim gcc string
This commit is contained in:
parent
e2105331c1
commit
5cb00eb481
@ -51,16 +51,14 @@ To help you in this process, we will ask for some information, add Go/Wails deta
|
|||||||
gcc := program.FindProgram("gcc")
|
gcc := program.FindProgram("gcc")
|
||||||
if gcc != nil {
|
if gcc != nil {
|
||||||
stdout, _, _, _ := gcc.Run("-dumpversion")
|
stdout, _, _, _ := gcc.Run("-dumpversion")
|
||||||
gccVersion = stdout
|
gccVersion = strings.TrimSpace(stdout)
|
||||||
// TODO: check if linefeed needs stripping or what kind
|
|
||||||
// gccVersion = gccVersion[:len(gccVersion)-1]
|
|
||||||
}
|
}
|
||||||
case "linux":
|
case "linux":
|
||||||
gcc := program.FindProgram("gcc")
|
gcc := program.FindProgram("gcc")
|
||||||
if gcc != nil {
|
if gcc != nil {
|
||||||
stdout, _, _, _ := gcc.Run("-dumpfullversion")
|
gccVersion, _, _, _ := gcc.Run("-dumpfullversion")
|
||||||
gccVersion = stdout
|
|
||||||
gccVersion = gccVersion[:len(gccVersion)-1]
|
gccVersion = gccVersion[:len(gccVersion)-1]
|
||||||
|
gccVersion = strings.TrimSpace(gccVersion)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: windows support
|
// TODO: windows support
|
||||||
|
Loading…
Reference in New Issue
Block a user