From 0457da34db9fd306806bd3baf66de71bea128e9d Mon Sep 17 00:00:00 2001 From: Almog Baku Date: Sat, 9 Jul 2022 23:11:27 +0300 Subject: [PATCH] Fixes #289 --- bind/utils.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bind/utils.go b/bind/utils.go index 3295ee5..42ef5bc 100644 --- a/bind/utils.go +++ b/bind/utils.go @@ -109,6 +109,8 @@ import os version=sys.version_info.major def clear_ld_flags(s): + if s is None: + return '' skip_first_word = s.split(' ', 1)[1] # skip compiler name skip_bundle = skip_first_word.replace('-bundle', '') # cgo already passes -dynamiclib return skip_bundle