Skip to content

Commit

Permalink
Disable -py3-stable-abi + -threads + -directors
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimcn committed Nov 18, 2019
1 parent 250b834 commit bd9f159
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Source/Modules/python.cxx
Expand Up @@ -459,6 +459,14 @@ class PYTHON:public Language {
SWIG_exit(EXIT_FAILURE);
}

if (py3_stable_abi && threads && directorsEnabled()) {
// directors + threads uses PyThread_* APIs, which are not exported from python3.dll on Windows,
// despite nominally being a part of the stable ABI.
// To prevent confusing users with linker errors, we disable this combination.
Printf(stderr, "-py3-stable-abi, -threads and -directors options are not compatible.\n");
SWIG_exit(EXIT_FAILURE);
}

if (py3_stable_abi && fastproxy) {
Printf(stderr, "-py3-stable-abi and -fastproxy options are not compatible. Disabling -fastproxy.\n");
fastproxy = 0;
Expand Down

0 comments on commit bd9f159

Please sign in to comment.