Tests: build the pure-C ABI plugin fixtures on Windows
The V1 fixture gets a small pthread/nanosleep shim over _beginthreadex and CRITICAL_SECTION, so the C ABI hardening suite runs on Windows too (+5 tests). The fixture block is no longer gated to non-Windows.
This commit is contained in:
1 parent
7cddcf15ea
commit
7d9884d86b
4 files changed
+92
-9
No files matched your search
@@ -327,9 +327,8 @@ if(TARGET VoidTests AND TARGET Void::Plugin)
|
||||
add_dependencies(VoidTests VoidServicePluginV1 VoidServicePluginV2)
|
||||
endif()
|
||||
|
||||
# The pure-C ABI fixtures use pthreads/nanosleep; they are POSIX-only for
|
||||
# now (the C++ plugin fixtures above still cover Plugin on Windows).
|
||||
if(NOT WIN32)
|
||||
# The pure-C ABI fixtures build on every platform (the V1 fixture carries
|
||||
# a small pthread shim for Windows); they are loaded through the C ABI.
|
||||
enable_language(C)
|
||||
function(_void_add_cabi_fixture target_name source_file)
|
||||
add_library(${target_name} SHARED "${CMAKE_CURRENT_SOURCE_DIR}/plugins/${source_file}")
|
||||
@@ -385,5 +384,4 @@ if(TARGET VoidTests AND TARGET Void::Plugin)
|
||||
"VOID_CABI_CYC_A_PATH=\"$<TARGET_FILE:VoidCAbiCycA>\""
|
||||
"VOID_CABI_CYC_B_PATH=\"$<TARGET_FILE:VoidCAbiCycB>\""
|
||||
)
|
||||
endif() # NOT WIN32
|
||||
endif()
|
||||
Reference in new issue
Block a user