diff options
author | Christian Heimes <christian@python.org> | 2021-10-05 09:43:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-05 09:43:46 (GMT) |
commit | ef6196028f966f22d82930b66e1371e75c5df2f7 (patch) | |
tree | 8aa9e6f95648e66325486c6a9b685e1db36a8485 /Lib/distutils | |
parent | 07cf10bafc8f6e1fcc82c10d97d3452325fc7c04 (diff) | |
download | cpython-ef6196028f966f22d82930b66e1371e75c5df2f7.zip cpython-ef6196028f966f22d82930b66e1371e75c5df2f7.tar.gz cpython-ef6196028f966f22d82930b66e1371e75c5df2f7.tar.bz2 |
bpo-45371: Fix distutils' rpath support for clang (GH-28732)
Signed-off-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/unixccompiler.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/unixccompiler.py b/Lib/distutils/unixccompiler.py index f0792de..d00c489 100644 --- a/Lib/distutils/unixccompiler.py +++ b/Lib/distutils/unixccompiler.py @@ -215,7 +215,8 @@ class UnixCCompiler(CCompiler): return "-L" + dir def _is_gcc(self, compiler_name): - return "gcc" in compiler_name or "g++" in compiler_name + # clang uses same syntax for rpath as gcc + return any(name in compiler_name for name in ("gcc", "g++", "clang")) def runtime_library_dir_option(self, dir): # XXX Hackish, at the very least. See Python bug #445902: |