From ee2ffdcf411f100e336dd7ac8ac6095f57c3d85a Mon Sep 17 00:00:00 2001 From: Maxwell Elliott Date: Thu, 14 Aug 2025 16:00:37 -0400 Subject: [PATCH] Add module map for CSKTestSupport Create a module map for the CSKTestSupport module, exporting the header "CSKTestSupport.h". This allows for better modularization and encapsulation of the support functionalities. Signed-off-by: Maxwell Elliott --- Sources/CSKTestSupport/include/CSKTestSupport.h | 10 ++++++++++ Sources/CSKTestSupport/include/module.modulemap | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 Sources/CSKTestSupport/include/CSKTestSupport.h diff --git a/Sources/CSKTestSupport/include/CSKTestSupport.h b/Sources/CSKTestSupport/include/CSKTestSupport.h new file mode 100644 index 00000000..ffd3a23d --- /dev/null +++ b/Sources/CSKTestSupport/include/CSKTestSupport.h @@ -0,0 +1,10 @@ +#ifndef CSKTestSupport_h +#define CSKTestSupport_h + +#ifdef __linux__ +// For testing, override __cxa_atexit to prevent registration of static +// destructors due to https://github.com/swiftlang/swift/issues/55112. +int __cxa_atexit(void (*f) (void *), void *arg, void *dso_handle); +#endif + +#endif /* CSKTestSupport_h */ diff --git a/Sources/CSKTestSupport/include/module.modulemap b/Sources/CSKTestSupport/include/module.modulemap index e69de29b..160a5101 100644 --- a/Sources/CSKTestSupport/include/module.modulemap +++ b/Sources/CSKTestSupport/include/module.modulemap @@ -0,0 +1,4 @@ +module CSKTestSupport { + header "CSKTestSupport.h" + export * +}