Skip to content

Commit 8307b56

Browse files
committed
Don't add flags when the value is None, such as when on PyPy, LDCXXSHARED is unset.
1 parent 1f3188c commit 8307b56

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

distutils/sysconfig.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ def get_config_var(name):
571571
return get_config_vars().get(name)
572572

573573

574+
@pass_none
574575
def _add_flags(value: str, type: str) -> str:
575576
"""
576577
Add any flags from the environment for the given type.

0 commit comments

Comments
 (0)