File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -1446,6 +1446,16 @@ function swift_c_flags() {
1446
1446
esac
1447
1447
}
1448
1448
1449
+ function maybe_lfts() {
1450
+ local host=$1
1451
+
1452
+ case $host in
1453
+ linux-static-* )
1454
+ echo -n " -lfts"
1455
+ ;;
1456
+ esac
1457
+ }
1458
+
1449
1459
function common_swift_flags() {
1450
1460
if [ " ${module_cache} " == " " ] ; then
1451
1461
echo " error: a module cache path has not been set"
@@ -2524,7 +2534,7 @@ for host in "${ALL_HOSTS[@]}"; do
2524
2534
-DENABLE_TESTING:BOOL=NO
2525
2535
2526
2536
-DBUILD_SHARED_LIBS=$( [[ ${product} == foundation_static ]] && echo " NO" || echo " YES" )
2527
- -DCMAKE_C_FLAGS=" $( swift_c_flags ${host} ) -lfts "
2537
+ -DCMAKE_C_FLAGS=" $( swift_c_flags ${host} ) $( maybe_lfts ${host} ) "
2528
2538
)
2529
2539
2530
2540
if [[ $( is_cross_tools_host ${host} ) ]] ; then
You can’t perform that action at this time.
0 commit comments