cmptest: regexdemo (todo)
This commit is contained in:
3
xtool/env/env.go
vendored
3
xtool/env/env.go
vendored
@@ -36,11 +36,8 @@ func ExpandEnv(s string) string {
|
||||
func expandEnvWithCmd(s string) string {
|
||||
expanded := reSubcmd.ReplaceAllStringFunc(s, func(m string) string {
|
||||
subcmd := strings.TrimSpace(m[2 : len(m)-1])
|
||||
|
||||
args := parseSubcmd(subcmd)
|
||||
|
||||
cmd := args[0]
|
||||
|
||||
if cmd != "pkg-config" && cmd != "llvm-config" {
|
||||
fmt.Fprintf(os.Stderr, "expand cmd only support pkg-config and llvm-config: '%s'\n", subcmd)
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user