File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -479,6 +479,11 @@ add_framework(CFXMLInterface
479
479
SOURCES
480
480
Parsing.subproj/CFXMLInterface.c )
481
481
add_dependencies (CFXMLInterface CoreFoundation )
482
+ if (NOT HAS_LIBDISPATCH_API )
483
+ # Explicitly link BlocksRuntime if we are not using libdispatch, which
484
+ # indirectly brings BlocksRuntime in.
485
+ target_link_libraries (CFXMLInterface PRIVATE BlocksRuntime )
486
+ endif ()
482
487
if (NOT CMAKE_SYSTEM_NAME STREQUAL Darwin )
483
488
target_link_libraries (CFXMLInterface PRIVATE
484
489
LibXml2::LibXml2 )
@@ -561,6 +566,13 @@ if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
561
566
-Xlinker;-alias_list;-Xlinker;Base.subproj/DarwinSymbolAliases;-twolevel_namespace;-sectcreate;__UNICODE;__csbitmaps;CharacterSets/CFCharacterSetBitmaps.bitmap;-sectcreate;__UNICODE;__properties;CharacterSets/CFUniCharPropertyDatabase.data;-sectcreate;__UNICODE;__data;CharacterSets/CFUnicodeData-L.mapping;-segprot;__UNICODE;r;r )
562
567
endif ()
563
568
569
+ if (CMAKE_SYSTEM_NAME STREQUAL WASI )
570
+ # Enable emulated features
571
+ set (WASI_EMULATION_DEFS _WASI_EMULATED_MMAN _WASI_EMULATED_SIGNAL _WASI_EMULATED_PROCESS_CLOCKS )
572
+ target_compile_definitions (CoreFoundation PRIVATE ${WASI_EMULATION_DEFS} )
573
+ target_compile_definitions (CFXMLInterface PRIVATE ${WASI_EMULATION_DEFS} )
574
+ endif ()
575
+
564
576
install (TARGETS
565
577
CoreFoundation
566
578
CFXMLInterface
You can’t perform that action at this time.
0 commit comments