Skip to content

Commit acd6a3e

Browse files
committed
tweak free-threaded detection in CMake (alternative to #1222)
1 parent 5cfa11a commit acd6a3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/nanobind-config.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ function(nanobind_add_module name)
357357
set(ARG_STABLE_ABI FALSE)
358358
endif()
359359

360-
if (NB_ABI MATCHES "t")
360+
if (NB_ABI MATCHES "[0-9]t")
361361
# Free-threaded Python interpreters don't support building a nanobind
362362
# module that uses the stable ABI.
363363
set(ARG_STABLE_ABI FALSE)

0 commit comments

Comments
 (0)