Skip to content

Commit

Permalink
Add "___CFConstantStringClassReference" Alias For ARM64
Browse files Browse the repository at this point in the history
  • Loading branch information
CuriousTommy committed Nov 1, 2023
1 parent 851cefd commit 1c8c2c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ set_property(TARGET CoreFoundation_x86_64 APPEND_STRING PROPERTY
LINK_FLAGS " -Wl,-reexported_symbols_list,${CMAKE_CURRENT_SOURCE_DIR}/reexport_x86_64.exp \
-Wl,-alias,_OBJC_CLASS_\\$___NSCFConstantString,___CFConstantStringClassReference")
endif (TARGET_x86_64)
if (TARGET_ARM64)
set_property(TARGET CoreFoundation_arm64 APPEND_STRING PROPERTY
LINK_FLAGS " -Wl,-alias,_OBJC_CLASS_\\$___NSCFConstantString,___CFConstantStringClassReference")
endif (TARGET_ARM64)

set_source_files_properties(${cf_c_sources} PROPERTIES COMPILE_FLAGS "-x objective-c")

Expand Down

0 comments on commit 1c8c2c2

Please sign in to comment.