Skip to content

Commit 19498e5

Browse files
fix: allow CMake to detect if limited API is targeted (#333)
Might be nice if we could indicate the target value too. But that will still be "truthful", so could be changed later. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 5739cf8 commit 19498e5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/scikit_build_core/builder/builder.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def configure(
115115
)
116116
cmake_defines.update(local_def)
117117

118-
cache_config: dict[str, str | Path] = {
118+
cache_config: dict[str, str | Path | bool] = {
119119
"SKBUILD": "2",
120120
"SKBUILD_CORE_VERSION": __version__,
121121
}
@@ -166,6 +166,9 @@ def configure(
166166
assert isinstance(ext_suffix, str)
167167
cache_config["SKBUILD_SOABI"] = ext_suffix.rsplit(".", 1)[0].lstrip(".")
168168

169+
# Allow CMakeLists to detect this is supposed to be a limited ABI build
170+
cache_config["SKBUILD_LIMITED_ABI"] = limited_abi
171+
169172
if cache_entries:
170173
cache_config.update(cache_entries)
171174

0 commit comments

Comments
 (0)