Skip to content

Commit e7b0e76

Browse files
committed
Fix handling when BLDSHARED has no flags
1 parent d03b9f9 commit e7b0e76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setuptools_rust/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ def _detect_unix_cross_compile_info() -> Optional["_CrossCompileInfo"]:
622622
linker = None
623623
linker_args = None
624624
else:
625-
[linker, linker_args] = bldshared.split(maxsplit=1)
625+
[linker, _, linker_args] = bldshared.partition(" ")
626626

627627
return _CrossCompileInfo(host_type, cross_lib, linker, linker_args)
628628

0 commit comments

Comments
 (0)