Skip to content

Commit ca76d1a

Browse files
authored
Merge pull request #241 from hoodmane/bldshared-no-flags
Fix handling when BLDSHARED has no flags
2 parents d03b9f9 + df2ff62 commit ca76d1a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
### Fixed
6+
- If the sysconfig for `BLDSHARED` has no flags, `setuptools-rust` won't crash anymore. [#241](https://github.com/PyO3/setuptools-rust/pull/241)
7+
38
## 1.3.0 (2022-04-26)
49

510
### Packaging

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)