-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PYBIND11_PLATFORM_ABI_ID
Modernization Continued (platforms other than MSVC)
#5439
Merged
+42
−43
Merged
Changes from 9 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
14f8425
THIS IS JUST A START: First attempt to combine information from PR #4…
rwgk e46982c
Merge branch 'master' into pybind11_platform_abi_id_cont
rwgk b72c42d
Include GXX_ABI and USE_CXX in the identifier
cryos 8369fdc
style: pre-commit fixes
pre-commit-ci[bot] 476c322
Use `gxx_abi_1xxx` and simplify the Clang string
cryos 271720f
Error if `_GLIBCXX_USE_CXX11_ABI` is not defined
cryos 970a7eb
Merge branch 'master' into pybind11_platform_abi_id_cont
rwgk 28081fc
Change `usecxx11` to `use_cxx11_abi` for correspondence with `_GLIBCX…
rwgk fe2dbcb
`PYBIND11_COMPILER_TYPE` overhaul, mainly: replace `_icc`, `_clang`, …
rwgk 9acf764
Merge branch 'master' into pybind11_platform_abi_id_cont
rwgk 9fc9515
Add NVHPC (__PGI) to the list of compilers compatible with system com…
rwgk d412303
Fix oversight: remove __NVCOMPILER elif branch in PYBIND11_BUILD_ABI …
rwgk b6ccce3
Revert "Fix oversight: remove __NVCOMPILER elif branch in PYBIND11_BU…
rwgk a584398
Revert "Add NVHPC (__PGI) to the list of compilers compatible with sy…
rwgk 23a5f2b
Define NVHPC PYBIND11_BUILD_ABI using __GNUC__, __GNUC_MINOR__, _GLIB…
rwgk 8fa10bf
Use _GLIBCXX_USE_CXX11_ABI to detect libstdc++, then assume that NVHP…
rwgk 02daf15
Enhance NVHPC comment and limited future proofing.
rwgk 3f90808
The `PYBIND11_STDLIB` is obsolete but kept around to maintain backwar…
rwgk b47be2d
Move `PYBIND11_BUILD_TYPE` down in the file, so that the order of mac…
rwgk e071edc
Introduce `PYBIND11_COMPILER_TYPE_LEADING_UNDERSCORE`:
rwgk ca9e699
Apply suggestion by @isuruf, with revised comments (code is as sugges…
rwgk 41daaa4
Make determination of `PYBIND11_COMPILER_TYPE` `"macos"` or `"glibc"`…
rwgk e34dc8b
Add `PYBIND11_COMPILER_TYPE` `emscripten`
rwgk 75da5fb
Add `PYBIND11_COMPILER_TYPE` `graalvm`
rwgk f4cc9b9
Merge branch 'master' into pybind11_platform_abi_id_cont
rwgk fb38f03
Revert "Add `PYBIND11_COMPILER_TYPE` `graalvm`"
rwgk 09131c5
Revert "Add `PYBIND11_COMPILER_TYPE` `emscripten`"
rwgk d05ea53
Revert "Make determination of `PYBIND11_COMPILER_TYPE` `"macos"` or `…
rwgk 776d163
Revert "Apply suggestion by @isuruf, with revised comments (code is a…
rwgk 70639c1
Merge branch 'master' into pybind11_platform_abi_id_cont
rwgk 7fb89ca
Merge branch 'master' into pybind11_platform_abi_id_cont
rwgk 738b7ec
Remove `defined(__INTEL_COMPILER)` as suggested by @hpkfft under http…
rwgk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the interest of simplification, consider removing
defined(__INTEL_COMPILER)
The Intel classic compilers,
icc
for C andicpc
for C++, define__GNUC__
as well as__INTEL_COMPILER
.The last version was 2021.10 and it stopped shipping in 2023.
The "Intel(R) oneAPI DPC++/C++ Compilers",
icx
for C andicpx
for C++, do not define__INTEL_COMPILER
.They do define all of these:
__GNUC__
,__clang__
,__INTEL_CLANG_COMPILER
, and__INTEL_LLVM_COMPILER
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done: 738b7ec
Thanks @hpkfft for the suggestion!