build: compatible spaces in path outputted from pkg-config
This commit is contained in:
6
xtool/env/env.go
vendored
6
xtool/env/env.go
vendored
@@ -22,6 +22,8 @@ import (
|
||||
"os/exec"
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
"github.com/goplus/llgo/internal/safesplit"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -29,6 +31,10 @@ var (
|
||||
reFlag = regexp.MustCompile(`[^ \t\n]+`)
|
||||
)
|
||||
|
||||
func ExpandEnvToArgs(s string) []string {
|
||||
return safesplit.SplitPkgConfigFlags(expandEnvWithCmd(s))
|
||||
}
|
||||
|
||||
func ExpandEnv(s string) string {
|
||||
return expandEnvWithCmd(s)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user