Skip to content

Commit da69915

Browse files
committed
[Linux] Build and install Foundation static libraries.
- Builds libFoundation.a, libFoundationNetworking.a and libFoundationXML.a and installs them in usr/lib/swift_static/linux - Note this does NOT make -static-stdlib work for Foundation at this time.
1 parent 8499a7f commit da69915

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

utils/build-script-impl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,6 +1847,9 @@ for host in "${ALL_HOSTS[@]}"; do
18471847
tmp_product=libdispatch
18481848
LIBDISPATCH_STATIC_CMAKE_OPTIONS=${LIBDISPATCH_CMAKE_OPTIONS[@]}
18491849
fi
1850+
if [[ ${tmp_product} == "foundation_static" ]]; then
1851+
tmp_product=foundation
1852+
fi
18501853
if ! [[ $(should_execute_action "${host}-${tmp_product}-build") ]]; then
18511854
continue
18521855
fi
@@ -3093,6 +3096,9 @@ for host in "${ALL_HOSTS[@]}"; do
30933096
if [[ ${tmp_product} == "libdispatch_static" ]]; then
30943097
tmp_product=libdispatch
30953098
fi
3099+
if [[ ${tmp_product} == "foundation_static" ]]; then
3100+
tmp_product=foundation
3101+
fi
30963102
if ! [[ $(should_execute_action "${host}-${tmp_product}-install") ]]; then
30973103
continue
30983104
fi

0 commit comments

Comments
 (0)