mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
Patch #642019: Recognize gcc-x.y as gcc.
This commit is contained in:
parent
8f8d1d2140
commit
69ceb33bac
1 changed files with 1 additions and 1 deletions
|
|
@ -201,7 +201,7 @@ class UnixCCompiler(CCompiler):
|
||||||
if sys.platform[:6] == "darwin":
|
if sys.platform[:6] == "darwin":
|
||||||
# MacOSX's linker doesn't understand the -R flag at all
|
# MacOSX's linker doesn't understand the -R flag at all
|
||||||
return "-L" + dir
|
return "-L" + dir
|
||||||
elif compiler == "gcc" or compiler == "g++":
|
elif compiler[:3] == "gcc" or compiler[:3] == "g++":
|
||||||
return "-Wl,-R" + dir
|
return "-Wl,-R" + dir
|
||||||
else:
|
else:
|
||||||
return "-R" + dir
|
return "-R" + dir
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue