This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Alex Grund, doko, iritkatriel, vstinner
Date 2022-01-26.23:21:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643239278.09.0.157785868298.issue38472@roundup.psfhosted.org>
In-reply-to
Content
FYI distutils.unixccompiler has a private _is_gcc() function:

    def _is_gcc(self, compiler_name):
        # clang uses same syntax for rpath as gcc
        return any(name in compiler_name for name in ("gcc", "g++", "clang"))

It's called with:

    compiler = os.path.basename(sysconfig.get_config_var("CC"))

For example, on my Fedora 35, compiler is the string: 'gcc -pthread'. So _is_gcc() returns True.
History
Date User Action Args
2022-01-26 23:21:18vstinnersetrecipients: + vstinner, doko, Alex Grund, iritkatriel
2022-01-26 23:21:18vstinnersetmessageid: <1643239278.09.0.157785868298.issue38472@roundup.psfhosted.org>
2022-01-26 23:21:18vstinnerlinkissue38472 messages
2022-01-26 23:21:17vstinnercreate