xtool/safesplit:properly handle consecutive short flags
This commit is contained in:
@@ -446,6 +446,12 @@ func TestFlagMergingScenarios(t *testing.T) {
|
||||
expectComp: []string{"-O3", "-fPIC", "-Wall", "-Wextra", "-std=c11"},
|
||||
expectLink: []string{"-O3", "-lm", "-lpthread", "-static"},
|
||||
},
|
||||
{
|
||||
// case from https://github.com/goplus/llgo/issues/1244
|
||||
name: "issue 1244",
|
||||
envCFlags: "-w -pipe -mmacosx-version-min=15 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk",
|
||||
expectComp: []string{"-w", "-pipe", "-mmacosx-version-min=15", "-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk"},
|
||||
},
|
||||
}
|
||||
|
||||
// Save original environment
|
||||
|
||||
Reference in New Issue
Block a user