@@ -32,7 +32,7 @@ CF_EXTERN_C_BEGIN
3232// FHS bundles are supported on the Swift and C runtimes, except on Windows.
3333#if !DEPLOYMENT_RUNTIME_OBJC && !TARGET_OS_WIN32
3434
35- #if TARGET_OS_LINUX || TARGET_OS_BSD || TARGET_OS_ANDROID
35+ #if TARGET_OS_LINUX || TARGET_OS_BSD || TARGET_OS_ANDROID || TARGET_OS_WASI
3636#define _CFBundleFHSSharedLibraryFilenamePrefix CFSTR("lib")
3737#define _CFBundleFHSSharedLibraryFilenameSuffix CFSTR(".so")
3838#elif TARGET_OS_MAC
@@ -390,6 +390,7 @@ extern void _CFPlugInWillUnload(CFPlugInRef plugIn);
390390#define _CFBundleSolarisPlatformName CFSTR("solaris")
391391#define _CFBundleLinuxPlatformName CFSTR("linux")
392392#define _CFBundleFreeBSDPlatformName CFSTR("freebsd")
393+ #define _CFBundleWASIPlatformName CFSTR("wasi")
393394#define _CFBundleMacOSXPlatformNameSuffix CFSTR("-macos")
394395#define _CFBundleAlternateMacOSXPlatformNameSuffix CFSTR("-macosx")
395396#define _CFBundleiPhoneOSPlatformNameSuffix CFSTR("-iphoneos")
@@ -400,6 +401,7 @@ extern void _CFPlugInWillUnload(CFPlugInRef plugIn);
400401#define _CFBundleSolarisPlatformNameSuffix CFSTR("-solaris")
401402#define _CFBundleLinuxPlatformNameSuffix CFSTR("-linux")
402403#define _CFBundleFreeBSDPlatformNameSuffix CFSTR("-freebsd")
404+ #define _CFBundleWASIPlatformNameSuffix CFSTR("-wasi")
403405
404406STATIC_CONST_STRING_DECL (_CFBundleMacDeviceName , "mac" );
405407STATIC_CONST_STRING_DECL (_CFBundleiPhoneDeviceName , "iphone" );
0 commit comments