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 <maxwell@elliott.now>
This commit is contained in:
Maxwell Elliott
2025-08-14 16:00:37 -04:00
parent 5f1aab86b8
commit ee2ffdcf41
2 changed files with 14 additions and 0 deletions

View File

@@ -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 */

View File

@@ -0,0 +1,4 @@
module CSKTestSupport {
header "CSKTestSupport.h"
export *
}