Skip to content

Commit ee2ffdc

Browse files
committed
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>
1 parent 5f1aab8 commit ee2ffdc

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#ifndef CSKTestSupport_h
2+
#define CSKTestSupport_h
3+
4+
#ifdef __linux__
5+
// For testing, override __cxa_atexit to prevent registration of static
6+
// destructors due to https://github.com/swiftlang/swift/issues/55112.
7+
int __cxa_atexit(void (*f) (void *), void *arg, void *dso_handle);
8+
#endif
9+
10+
#endif /* CSKTestSupport_h */
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module CSKTestSupport {
2+
header "CSKTestSupport.h"
3+
export *
4+
}

0 commit comments

Comments
 (0)