Skip to content

Commit 7175418

Browse files
authored
Merge pull request #290 from AlmogBaku/patch-2
Fixes #289
2 parents 0eb43bb + 0457da3 commit 7175418

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bind/utils.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ import os
109109
version=sys.version_info.major
110110
111111
def clear_ld_flags(s):
112+
if s is None:
113+
return ''
112114
skip_first_word = s.split(' ', 1)[1] # skip compiler name
113115
skip_bundle = skip_first_word.replace('-bundle', '') # cgo already passes -dynamiclib
114116
return skip_bundle

0 commit comments

Comments
 (0)