Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
064362fb
Unverified
Commit
064362fb
authored
Oct 16, 2020
by
Henry Schreiner
Committed by
GitHub
Oct 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: allow the ABI string to be forced (#2602)
parent
6364b732
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
32 deletions
+43
-32
include/pybind11/detail/internals.h
+43
-32
No files found.
include/pybind11/detail/internals.h
View file @
064362fb
...
@@ -154,49 +154,60 @@ struct type_info {
...
@@ -154,49 +154,60 @@ struct type_info {
/// On MSVC, debug and release builds are not ABI-compatible!
/// On MSVC, debug and release builds are not ABI-compatible!
#if defined(_MSC_VER) && defined(_DEBUG)
#if defined(_MSC_VER) && defined(_DEBUG)
#
define PYBIND11_BUILD_TYPE "_debug"
# define PYBIND11_BUILD_TYPE "_debug"
#else
#else
#
define PYBIND11_BUILD_TYPE ""
# define PYBIND11_BUILD_TYPE ""
#endif
#endif
/// Let's assume that different compilers are ABI-incompatible.
/// Let's assume that different compilers are ABI-incompatible.
#if defined(_MSC_VER)
/// A user can manually set this string if they know their
# define PYBIND11_COMPILER_TYPE "_msvc"
/// compiler is compatible.
#elif defined(__INTEL_COMPILER)
#ifndef PYBIND11_COMPILER_TYPE
# define PYBIND11_COMPILER_TYPE "_icc"
# if defined(_MSC_VER)
#elif defined(__clang__)
# define PYBIND11_COMPILER_TYPE "_msvc"
# define PYBIND11_COMPILER_TYPE "_clang"
# elif defined(__INTEL_COMPILER)
#elif defined(__PGI)
# define PYBIND11_COMPILER_TYPE "_icc"
# define PYBIND11_COMPILER_TYPE "_pgi"
# elif defined(__clang__)
#elif defined(__MINGW32__)
# define PYBIND11_COMPILER_TYPE "_clang"
# define PYBIND11_COMPILER_TYPE "_mingw"
# elif defined(__PGI)
#elif defined(__CYGWIN__)
# define PYBIND11_COMPILER_TYPE "_pgi"
# define PYBIND11_COMPILER_TYPE "_gcc_cygwin"
# elif defined(__MINGW32__)
#elif defined(__GNUC__)
# define PYBIND11_COMPILER_TYPE "_mingw"
# define PYBIND11_COMPILER_TYPE "_gcc"
# elif defined(__CYGWIN__)
#else
# define PYBIND11_COMPILER_TYPE "_gcc_cygwin"
# define PYBIND11_COMPILER_TYPE "_unknown"
# elif defined(__GNUC__)
# define PYBIND11_COMPILER_TYPE "_gcc"
# else
# define PYBIND11_COMPILER_TYPE "_unknown"
# endif
#endif
#endif
#if defined(_LIBCPP_VERSION)
/// Also standard libs
# define PYBIND11_STDLIB "_libcpp"
#ifndef PYBIND11_STDLIB
#elif defined(__GLIBCXX__) || defined(__GLIBCPP__)
# if defined(_LIBCPP_VERSION)
# define PYBIND11_STDLIB "_libstdcpp"
# define PYBIND11_STDLIB "_libcpp"
#else
# elif defined(__GLIBCXX__) || defined(__GLIBCPP__)
# define PYBIND11_STDLIB ""
# define PYBIND11_STDLIB "_libstdcpp"
# else
# define PYBIND11_STDLIB ""
# endif
#endif
#endif
/// On Linux/OSX, changes in __GXX_ABI_VERSION__ indicate ABI incompatibility.
/// On Linux/OSX, changes in __GXX_ABI_VERSION__ indicate ABI incompatibility.
#if defined(__GXX_ABI_VERSION)
#ifndef PYBIND11_BUILD_ABI
# define PYBIND11_BUILD_ABI "_cxxabi" PYBIND11_TOSTRING(__GXX_ABI_VERSION)
# if defined(__GXX_ABI_VERSION)
#else
# define PYBIND11_BUILD_ABI "_cxxabi" PYBIND11_TOSTRING(__GXX_ABI_VERSION)
# define PYBIND11_BUILD_ABI ""
# else
# define PYBIND11_BUILD_ABI ""
# endif
#endif
#endif
#if defined(WITH_THREAD)
#ifndef PYBIND11_INTERNALS_KIND
# define PYBIND11_INTERNALS_KIND ""
# if defined(WITH_THREAD)
#else
# define PYBIND11_INTERNALS_KIND ""
# define PYBIND11_INTERNALS_KIND "_without_thread"
# else
# define PYBIND11_INTERNALS_KIND "_without_thread"
# endif
#endif
#endif
#define PYBIND11_INTERNALS_ID "__pybind11_internals_v" \
#define PYBIND11_INTERNALS_ID "__pybind11_internals_v" \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment