We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 744da80 commit 385862dCopy full SHA for 385862d
bind/utils.go
@@ -186,11 +186,10 @@ else:
186
raw.LibDir = filepath.ToSlash(raw.LibDir)
187
188
// on windows these can be empty -- use include dir which is usu good
189
+ // replace suffix case insensitive 'include' with 'libs'
190
if raw.LibDir == "" && raw.IncDir != "" {
- raw.LibDir = raw.IncDir
191
- if strings.HasSuffix(raw.LibDir, "include") {
192
- raw.LibDir = raw.LibDir[:len(raw.LibDir)-len("include")] + "libs"
193
- }
+ regexInc := regexp.MustCompile(`(?i)\binclude$`)
+ raw.LibDir = regexInc.ReplaceAllString(raw.IncDir, "libs")
194
fmt.Printf("no LibDir -- copy from IncDir: %s\n", raw.LibDir)
195
}
196
0 commit comments