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 * +}