Skip to content

Commit

Permalink
forgot to actually set the api version
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowJonathan committed May 16, 2024
1 parent 4e59e9f commit 886be7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/ClientSMLSWIG/Python/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ if "SOAR_PYTHON_ABI3" in env["ENV"]:
major, minor = env["LIMITED_API_TARGET"] = env["PY_ABI3_VERSION"]

# CPP Definition constructed from the minor/major ABI3 version parts
API_NUMBER = (0x1000000 * major) + (0x10000 * minor)
api_version = (0x1000000 * major) + (0x10000 * minor)

# Signal to the .i file that we're building the limited API
clone.Append(CPPDEFINES = { 'Py_LIMITED_API': None })
clone.Append(CPPDEFINES = { 'Py_LIMITED_API': api_version })
else:
print("'Requested building Python SML bindings with Python's Limited API, "
"while SWIG does not support it, aborting.'", file=sys.stderr)
Expand Down

0 comments on commit 886be7f

Please sign in to comment.