libstdc++ detection uses os.path.realpath instead of os.readlink (#8865)
This commit is contained in:
parent
e380b08bab
commit
6ef2eb8f7e
@ -74,7 +74,7 @@ def _gcc_get_libstdcxx_version(self, version):
|
|||||||
return None
|
return None
|
||||||
if not output:
|
if not output:
|
||||||
return None
|
return None
|
||||||
libpath = os.readlink(output.strip())
|
libpath = os.path.realpath(output.strip())
|
||||||
if not libpath:
|
if not libpath:
|
||||||
return None
|
return None
|
||||||
return os.path.basename(libpath)
|
return os.path.basename(libpath)
|
||||||
|
Loading…
Reference in New Issue
Block a user