René's URL Explorer Experiment


Title: detecting clang in configure.ac · Issue #110034 · python/cpython · GitHub

Open Graph Title: detecting clang in configure.ac · Issue #110034 · python/cpython

X Title: detecting clang in configure.ac · Issue #110034 · python/cpython

Description: Bug report Bug description: There are several attempts in configure.ac to detect what the compiler we're dealing with actually is: dnl detect compiler name dnl check for xlc before clang, newer xlc's can use clang as frontend. dnl check ...

Open Graph Description: Bug report Bug description: There are several attempts in configure.ac to detect what the compiler we're dealing with actually is: dnl detect compiler name dnl check for xlc before clang, newer xlc...

X Description: Bug report Bug description: There are several attempts in configure.ac to detect what the compiler we're dealing with actually is: dnl detect compiler name dnl check for xlc before clang, newer...

Opengraph URL: https://github.com/python/cpython/issues/110034

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"detecting clang in configure.ac","articleBody":"# Bug report\n\n### Bug description:\n\nThere are several attempts in configure.ac to detect what the compiler we're dealing with actually is:\n\n```autoconf\ndnl detect compiler name\ndnl check for xlc before clang, newer xlc's can use clang as frontend.\ndnl check for GCC last, other compilers set __GNUC__, too.\ndnl msvc is listed for completeness.\nAC_CACHE_CHECK([for CC compiler name], [ac_cv_cc_name], [\ncat > conftest.c \u003c\u003cEOF\n#if defined(__INTEL_COMPILER) || defined(__ICC)\n  icc\n#elif defined(__ibmxl__) || defined(__xlc__) || defined(__xlC__)\n  xlc\n#elif defined(_MSC_VER)\n  msvc\n#elif defined(__clang__)\n  clang\n#elif defined(__GNUC__)\n  gcc\n#else\n#  error unknown compiler\n#endif\nEOF\n\nif $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then\n  ac_cv_cc_name=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' \t'`\nelse\n  ac_cv_cc_name=\"unknown\"\nfi\nrm -f conftest.c conftest.out\n])\n```\n\nor this,\n\n```sh\ncase $CC in\n    *clang*)\n        cc_is_clang=1\n        ;;\n    *)\n        if $CC --version 2>&1 | grep -q clang\n        then\n            cc_is_clang=1\n        else\n            cc_is_clang=\n        fi\nesac\n```\n\nWe then have a bunch of tests against `$CC`:\n\n```sh\nif test \"$Py_LTO\" = 'true' ; then\n  case $CC in\n    *clang*)\n```\n\n(most BSDs patch this code to say `*clang*|cc)`)\n\n```sh\nif test \"$ac_cv_gcc_asm_for_x87\" = yes; then\n    # Some versions of gcc miscompile inline asm:\n    # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491\n    # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html\n    case $CC in\n        *gcc*)\n```\netc…\nFor gcc we actually have a special variable, `$GCC`, except it doesn't seem to reliably work:\n\n```sh\nif test \"${OPT-unset}\" = \"unset\"\nthen\n    case $GCC in\n    yes)\n        if test -n \"${cc_is_clang}\"\n        then\n```\n\n### How to fix this?\n\nautoconf (2.71?) seems to automatically detect GCC, setting a convenient `$GCC` variable. For clang, we can either reuse the `$cc_is_clang` code, moving it just after `AC_PROG_CC`, setting a `$CLANG` variable, or reuse the code that sets `$ac_cv_cc_name`, again, maybe setting a $CLANG variable for convenience.\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nOther","author":{"url":"https://github.com/igalic","@type":"Person","name":"igalic"},"datePublished":"2023-09-28T16:15:34Z","url":"https://github.com/python/cpython/issues/110034"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2b6a6f52-5155-0630-f9fc-b32f48034d48
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA564:20D634:D5A64E:11CD895:6AFE9548
html-safe-noncedd277921d07b7c0650b6b5335cd82deba4fe9339dd598e4b91902c509a469db1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTY0OjIwRDYzNDpENUE2NEU6MTFDRDg5NTo2QUZFOTU0OCIsInZpc2l0b3JfaWQiOiI2NzkxNzcwNDI0MjA5MjE2ODQwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac3bfec192b68c2b178115410e3c663459648af904258bd8d88a5fb16057d7416f
hovercard-subject-tagissue:1917862759
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/110034/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9dc226c91435157bbde850b590f65c8cfa9b668dac37901b2d8f173622f2cbe7/python/cpython/issues/110034
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9dc226c91435157bbde850b590f65c8cfa9b668dac37901b2d8f173622f2cbe7/python/cpython/issues/110034
og:image:altBug report Bug description: There are several attempts in configure.ac to detect what the compiler we're dealing with actually is: dnl detect compiler name dnl check for xlc before clang, newer xlc...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameigalic
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/110034#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F110034
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F110034
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/110034
Reloadhttps://github.com/python/cpython/issues/110034
Reloadhttps://github.com/python/cpython/issues/110034
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/110034
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/110034
detecting clang in configure.achttps://github.com/python/cpython/issues/110034#top
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com/igalic
igalichttps://github.com/igalic
on Sep 28, 2023https://github.com/python/cpython/issues/110034#issue-1917862759
igalichttps://github.com/igalic
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Sep 28, 2023https://github.com/python/cpython/issues/110034#event-10501575189
sunmy2019https://github.com/sunmy2019
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
on Sep 29, 2023https://github.com/python/cpython/issues/110034#event-10515227134
AlexWaygoodhttps://github.com/AlexWaygood
on Sep 30, 2023https://github.com/python/cpython/issues/110034#event-10517543850
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
on Oct 4, 2023https://github.com/python/cpython/issues/110034#issuecomment-1746398431
erlend-aaslandhttps://github.com/erlend-aasland
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Oct 4, 2023https://github.com/python/cpython/issues/110034#event-10547856363
https://github.com/igalic
igalichttps://github.com/igalic
on Oct 4, 2023https://github.com/python/cpython/issues/110034#issuecomment-1746570454
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
on Oct 4, 2023https://github.com/python/cpython/issues/110034#issuecomment-1746608668
https://discuss.python.org/t/what-do-you-consider-pain-points-of-todays-build-system/31815https://discuss.python.org/t/what-do-you-consider-pain-points-of-todays-build-system/31815
https://discuss.python.org/t/what-do-you-want-to-see-in-tomorrow-s-cpython-build-system/28197https://discuss.python.org/t/what-do-you-want-to-see-in-tomorrow-s-cpython-build-system/28197
https://discuss.python.org/t/revisiting-the-case-for-cmake-as-a-primary-cross-major-plats-build-config/11758https://discuss.python.org/t/revisiting-the-case-for-cmake-as-a-primary-cross-major-plats-build-config/11758
https://discuss.python.org/t/is-there-prior-discussion-around-the-build-system-of-cpython-itself/2813https://discuss.python.org/t/is-there-prior-discussion-around-the-build-system-of-cpython-itself/2813
https://github.com/igalic
igalichttps://github.com/igalic
on Oct 5, 2023https://github.com/python/cpython/issues/110034#issuecomment-1749396556
https://github.com/Ahajha
Ahajhahttps://github.com/Ahajha
on Mar 25, 2024https://github.com/python/cpython/issues/110034#issuecomment-2018675492
https://github.com/conan-io/conan-center-index/blob/master/recipes/cpython/all/conanfile.pyhttps://github.com/conan-io/conan-center-index/blob/master/recipes/cpython/all/conanfile.py
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
on Apr 12, 2024https://github.com/python/cpython/issues/110034#issuecomment-2051212992
#96398https://github.com/python/cpython/issues/96398
erlend-aaslandhttps://github.com/erlend-aasland
not plannedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Apr 12, 2024https://github.com/python/cpython/issues/110034#event-12445980850
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/110034
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/110034
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.