@@ -40,40 +40,33 @@ endfunction()
40
40
41
41
42
42
function (_add_variant_c_compile_link_flags
43
- sdk arch build_type enable_assertions use_internal_sdk result_var_name )
43
+ sdk arch build_type enable_assertions result_var_name )
44
44
set (result
45
45
${${result_var_name}}
46
46
"-target" "${SWIFT_SDK_${sdk} _ARCH_${arch} _TRIPLE}" )
47
47
48
- if (use_internal_sdk )
49
- list (APPEND result
50
- "-isysroot" "${SWIFT_SDK_${sdk} _INTERNAL_PATH}" )
51
- else ()
52
- list (APPEND result
53
- "-isysroot" "${SWIFT_SDK_${sdk} _PATH}" )
54
- endif ()
48
+ list (APPEND result
49
+ "-isysroot" "${SWIFT_SDK_${sdk} _PATH}" )
55
50
56
51
if ("${CMAKE_SYSTEM_NAME} " STREQUAL "Darwin" )
57
52
list (APPEND result
58
53
"-arch" "${arch} "
59
54
"-F" "${SWIFT_SDK_${sdk} _PATH}/../../../Developer/Library/Frameworks"
60
- "-F" "${SWIFT_SDK_${sdk} _PATH}/../../../Developer/AppleInternal/Library/Frameworks"
61
55
"-m${SWIFT_SDK_${sdk} _VERSION_MIN_NAME}-version-min=${SWIFT_SDK_${sdk} _DEPLOYMENT_VERSION}" )
62
56
endif ()
63
57
64
58
set ("${result_var_name} " "${result} " PARENT_SCOPE )
65
59
endfunction ()
66
60
67
61
function (_add_variant_c_compile_flags
68
- sdk arch build_type enable_assertions use_internal_sdk result_var_name )
62
+ sdk arch build_type enable_assertions result_var_name )
69
63
set (result ${${result_var_name}} )
70
64
71
65
_add_variant_c_compile_link_flags (
72
66
"${sdk} "
73
67
"${arch} "
74
68
"${build_type} "
75
69
"${enable_assertions} "
76
- ${use_internal_sdk}
77
70
result )
78
71
79
72
is_build_type_optimized ("${build_type} " optimized )
@@ -114,8 +107,7 @@ function(_add_variant_swift_compile_flags
114
107
115
108
if ("${CMAKE_SYSTEM_NAME} " STREQUAL "Darwin" )
116
109
list (APPEND result
117
- "-F" "${SWIFT_SDK_${sdk} _PATH}/../../../Developer/Library/Frameworks"
118
- "-F" "${SWIFT_SDK_${sdk} _PATH}/../../../Developer/AppleInternal/Library/Frameworks" )
110
+ "-F" "${SWIFT_SDK_${sdk} _PATH}/../../../Developer/Library/Frameworks" )
119
111
endif ()
120
112
121
113
is_build_type_optimized ("${build_type} " optimized )
@@ -138,7 +130,7 @@ function(_add_variant_swift_compile_flags
138
130
endfunction ()
139
131
140
132
function (_add_variant_link_flags
141
- sdk arch build_type enable_assertions use_internal_sdk result_var_name )
133
+ sdk arch build_type enable_assertions result_var_name )
142
134
143
135
if ("${sdk} " STREQUAL "" )
144
136
message (FATAL_ERROR "Should specify an SDK" )
@@ -155,7 +147,6 @@ function(_add_variant_link_flags
155
147
"${arch} "
156
148
"${build_type} "
157
149
"${enable_assertions} "
158
- ${use_internal_sdk}
159
150
result )
160
151
161
152
if ("${sdk} " STREQUAL "LINUX" )
@@ -630,7 +621,6 @@ endfunction()
630
621
# _add_swift_library_single(
631
622
# target
632
623
# name
633
- # [USE_INTERNAL_SDK]
634
624
# [SHARED]
635
625
# [SDK sdk]
636
626
# [ARCHITECTURE architecture]
@@ -711,15 +701,12 @@ endfunction()
711
701
# INSTALL_IN_COMPONENT comp
712
702
# The Swift installation component that this library belongs to.
713
703
#
714
- # USE_INTERNAL_SDK
715
- # Use the 'internal' sdk variant.
716
- #
717
704
# source1 ...
718
705
# Sources to add into this library
719
706
function (_add_swift_library_single target name )
720
707
set (SWIFTLIB_SINGLE_options
721
708
SHARED IS_STDLIB IS_STDLIB_CORE IS_SDK_OVERLAY
722
- API_NOTES_NON_OVERLAY DONT_EMBED_BITCODE USE_INTERNAL_SDK )
709
+ API_NOTES_NON_OVERLAY DONT_EMBED_BITCODE )
723
710
cmake_parse_arguments (SWIFTLIB_SINGLE
724
711
"${SWIFTLIB_SINGLE_options} "
725
712
"SDK;ARCHITECTURE;INSTALL_IN_COMPONENT"
@@ -1033,14 +1020,12 @@ function(_add_swift_library_single target name)
1033
1020
"${SWIFTLIB_SINGLE_ARCHITECTURE} "
1034
1021
"${build_type} "
1035
1022
"${enable_assertions} "
1036
- ${SWIFTLIB_SINGLE_USE_INTERNAL_SDK}
1037
1023
c_compile_flags )
1038
1024
_add_variant_link_flags (
1039
1025
"${SWIFTLIB_SINGLE_SDK} "
1040
1026
"${SWIFTLIB_SINGLE_ARCHITECTURE} "
1041
1027
"${build_type} "
1042
1028
"${enable_assertions} "
1043
- ${SWIFTLIB_SINGLE_USE_INTERNAL_SDK}
1044
1029
link_flags )
1045
1030
1046
1031
# Handle gold linker flags for shared libraries.
@@ -1228,15 +1213,12 @@ endfunction()
1228
1213
# INSTALL_IN_COMPONENT comp
1229
1214
# The Swift installation component that this library belongs to.
1230
1215
#
1231
- # USE_INTERNAL_SDK
1232
- # Use the 'internal' sdk variant.
1233
- #
1234
1216
# source1 ...
1235
1217
# Sources to add into this library.
1236
1218
function (add_swift_library name )
1237
1219
set (SWIFTLIB_options
1238
1220
SHARED IS_STDLIB IS_STDLIB_CORE IS_SDK_OVERLAY TARGET_LIBRARY
1239
- API_NOTES_NON_OVERLAY DONT_EMBED_BITCODE USE_INTERNAL_SDK )
1221
+ API_NOTES_NON_OVERLAY DONT_EMBED_BITCODE )
1240
1222
cmake_parse_arguments (SWIFTLIB
1241
1223
"${SWIFTLIB_options} "
1242
1224
"INSTALL_IN_COMPONENT"
@@ -1372,7 +1354,6 @@ function(add_swift_library name)
1372
1354
_add_swift_library_single (
1373
1355
${VARIANT_NAME}
1374
1356
${name}
1375
- ${SWIFTLIB_USE_INTERNAL_SDK_keyword}
1376
1357
${SWIFTLIB_SHARED_keyword}
1377
1358
${SWIFTLIB_SOURCES}
1378
1359
SDK ${sdk}
@@ -1519,7 +1500,6 @@ function(add_swift_library name)
1519
1500
_add_swift_library_single (
1520
1501
${name}
1521
1502
${name}
1522
- ${SWIFTLIB_USE_INTERNAL_SDK_keyword}
1523
1503
${SWIFTLIB_SHARED_keyword}
1524
1504
${SWIFTLIB_SOURCES}
1525
1505
SDK ${sdk}
0 commit comments