Skip to content

Commit 2b95f26

Browse files
committed
Fix Windows FFI build
Looks like the Rust standard library now links against ntdll too.
1 parent 3f05d6a commit 2b95f26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ffi/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
1010
endif ()
1111

1212
if (MSVC)
13-
set (SYSTEM_LIBS ws2_32 Userenv bcrypt)
13+
set (SYSTEM_LIBS ntdll ws2_32 Userenv bcrypt)
1414
endif ()
1515

1616
set (FFI_LIBRARY "${CMAKE_SOURCE_DIR}/../target/debug/${CMAKE_STATIC_LIBRARY_PREFIX}loot_condition_interpreter_ffi${CMAKE_STATIC_LIBRARY_SUFFIX}")

0 commit comments

Comments
 (0)