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.
2 parents fc6df6c + 9fae0b2 commit 5f285b8Copy full SHA for 5f285b8
bind/utils.go
@@ -198,12 +198,8 @@ else:
198
fmt.Printf("no LibPy -- set to: %s\n", raw.LibPy)
199
}
200
201
- if strings.HasSuffix(raw.LibPy, ".a") {
202
- raw.LibPy = raw.LibPy[:len(raw.LibPy)-len(".a")]
203
- }
204
- if strings.HasPrefix(raw.LibPy, "lib") {
205
- raw.LibPy = raw.LibPy[len("lib"):]
206
+ raw.LibPy = strings.TrimSuffix(raw.LibPy, ".a")
+ raw.LibPy = strings.TrimPrefix(raw.LibPy, "lib")
207
208
cfg.Version = raw.Version
209
cfg.ExtSuffix = raw.ExtSuffix
0 commit comments