Skip to content

Commit b94ee42

Browse files
committed
fix nanobind flags
1 parent 3c1a5c5 commit b94ee42

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

projects/eudsl-py/src/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/eudsl)
4343
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
4444

4545
add_compile_options(-Wno-cast-qual -Wno-deprecated-literal-operator)
46-
nanobind_add_module(eudsl_ext NB_STATIC STABLE_ABI
46+
nanobind_add_module(eudsl_ext
47+
NB_STATIC STABLE_ABI
48+
NB_DOMAIN eudsl
4749
eudsl_ext.cpp
4850
ir.cpp
4951
arith.cpp
@@ -60,9 +62,10 @@ target_link_libraries(eudsl_ext PRIVATE
6062
MLIRSCFDialect
6163
MLIRAffineDialect
6264
)
63-
target_compile_options(eudsl_ext
65+
target_compile_options(nanobind-static-abi3
6466
PRIVATE
6567
-Wno-cast-qual
68+
-Wno-covered-switch-default
6669
$<$<PLATFORM_ID:Linux>:-fexceptions -frtti>
6770
$<$<PLATFORM_ID:Darwin>:-fexceptions -frtti>
6871
$<$<PLATFORM_ID:Windows>:/EHsc /GR>)

0 commit comments

Comments
 (0)