This commit is contained in:
Almog Baku 2022-07-09 23:11:27 +03:00 committed by GitHub
parent 0eb43bb47f
commit 0457da34db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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