File tree 4 files changed +14
-16
lines changed
4 files changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -160,14 +160,14 @@ if(NOT BUILD_SHARED_LIBS)
160
160
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend CoreFoundation>" )
161
161
target_compile_options (Foundation PRIVATE
162
162
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend _FoundationICU>" )
163
+ target_compile_options (Foundation PRIVATE
164
+ "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend swiftSynchronization>" )
163
165
endif ()
164
166
165
- target_link_options (Foundation PRIVATE
166
- "SHELL:-no-toolchain-stdlib-rpath" )
167
-
168
167
set_target_properties (Foundation PROPERTIES
169
168
INSTALL_RPATH "$ORIGIN"
170
- BUILD_RPATH "$<TARGET_FILE_DIR:swiftDispatch>" )
169
+ BUILD_RPATH "$<TARGET_FILE_DIR:swiftDispatch>"
170
+ INSTALL_REMOVE_ENVIRONMENT_RPATH ON )
171
171
172
172
target_link_libraries (Foundation PUBLIC
173
173
swiftDispatch)
Original file line number Diff line number Diff line change @@ -60,13 +60,13 @@ if(NOT BUILD_SHARED_LIBS)
60
60
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend _CFURLSessionInterface>" )
61
61
target_compile_options (FoundationNetworking PRIVATE
62
62
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend curl>" )
63
+ target_compile_options (FoundationNetworking PRIVATE
64
+ "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend swiftSynchronization>" )
63
65
endif ()
64
66
65
- target_link_options (FoundationNetworking PRIVATE
66
- "SHELL:-no-toolchain-stdlib-rpath" )
67
-
68
67
set_target_properties (FoundationNetworking PROPERTIES
69
- INSTALL_RPATH "$ORIGIN" )
68
+ INSTALL_RPATH "$ORIGIN"
69
+ INSTALL_REMOVE_ENVIRONMENT_RPATH ON )
70
70
71
71
if (LINKER_SUPPORTS_BUILD_ID)
72
72
target_link_options (FoundationNetworking PRIVATE "LINKER:--build-id=sha1" )
Original file line number Diff line number Diff line change @@ -35,13 +35,13 @@ if(NOT BUILD_SHARED_LIBS)
35
35
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend _CFXMLInterface>" )
36
36
target_compile_options (FoundationXML PRIVATE
37
37
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend xml2>" )
38
+ target_compile_options (FoundationXML PRIVATE
39
+ "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend swiftSynchronization>" )
38
40
endif ()
39
41
40
- target_link_options (FoundationXML PRIVATE
41
- "SHELL:-no-toolchain-stdlib-rpath" )
42
-
43
42
set_target_properties (FoundationXML PROPERTIES
44
- INSTALL_RPATH "$ORIGIN" )
43
+ INSTALL_RPATH "$ORIGIN"
44
+ INSTALL_REMOVE_ENVIRONMENT_RPATH ON )
45
45
46
46
if (LINKER_SUPPORTS_BUILD_ID)
47
47
target_link_options (FoundationXML PRIVATE "LINKER:--build-id=sha1" )
Original file line number Diff line number Diff line change @@ -18,11 +18,9 @@ add_executable(plutil
18
18
target_link_libraries (plutil PRIVATE
19
19
Foundation)
20
20
21
- target_link_options (plutil PRIVATE
22
- "SHELL:-no-toolchain-stdlib-rpath" )
23
-
24
21
set_target_properties (plutil PROPERTIES
25
- INSTALL_RPATH "$ORIGIN/../lib/swift/${SWIFT_SYSTEM_NAME} " )
22
+ INSTALL_RPATH "$ORIGIN/../lib/swift/${SWIFT_SYSTEM_NAME} "
23
+ INSTALL_REMOVE_ENVIRONMENT_RPATH ON )
26
24
27
25
set_property (GLOBAL APPEND PROPERTY Foundation_EXPORTS plutil)
28
26
install (TARGETS plutil
You can’t perform that action at this time.
0 commit comments