We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c28f994 + 04b469a commit a90e1beCopy full SHA for a90e1be
cmake/modules/AddSwiftHostLibrary.cmake
@@ -70,6 +70,13 @@ function(add_swift_host_library name)
70
BUILD_WITH_INSTALL_RPATH YES
71
)
72
73
+ get_target_property(lib_type ${name} TYPE)
74
+ if(lib_type STREQUAL SHARED_LIBRARY AND CMAKE_SYSTEM_NAME STREQUAL Darwin)
75
+ # Allow install_name_tool to update paths (for rdar://109473564)
76
+ set_property(TARGET ${name} APPEND_STRING PROPERTY
77
+ LINK_FLAGS " -Xlinker -headerpad_max_install_names")
78
+ endif()
79
+
80
# Install this target
81
install(TARGETS ${name}
82
EXPORT SwiftSyntaxTargets
0 commit comments