Windows: make plugin and runtime test guards portable
- Do not build the pthread-based C ABI fixtures on Windows (their tests skip without the path macros); the C++ plugin fixtures still build. - Plugin tests: drop the dlfcn.h proxy guard now that Windows uses LoadLibrary; mark the C ABI hardening file @requires-posix. - RuntimeSignals is POSIX-only (@requires-posix). Refs #65
This commit is contained in:
1 parent
8510ea197f
commit
6fa77eed93
8 files changed
+11
-11
No files matched your search
@@ -315,6 +315,9 @@ 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)
|
||||
enable_language(C)
|
||||
function(_void_add_cabi_fixture target_name source_file)
|
||||
add_library(${target_name} SHARED "${CMAKE_CURRENT_SOURCE_DIR}/plugins/${source_file}")
|
||||
@@ -370,4 +373,5 @@ 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