@@ -266,7 +266,6 @@ KNOWN_SETTINGS=(
266
266
)
267
267
268
268
components=(
269
- cmark
270
269
foundation
271
270
libcxx
272
271
libdispatch
@@ -284,9 +283,6 @@ components=(
284
283
)
285
284
for component in ${components[@]} ; do
286
285
component_skip_test_default=" "
287
- if [[ " ${component} " == " cmark" ]]; then
288
- component_skip_test_default=" 1"
289
- fi
290
286
KNOWN_SETTINGS+=(
291
287
${component} -build-type " Debug" " the build variant for ${component} "
292
288
${component} -cmake-options " " " CMake options used for ${component} "
@@ -494,7 +490,6 @@ function verify_host_is_supported() {
494
490
function set_build_options_for_host() {
495
491
llvm_cmake_options=()
496
492
swift_cmake_options=()
497
- cmark_cmake_options=()
498
493
lldb_cmake_options=()
499
494
llbuild_cmake_options=()
500
495
SWIFT_HOST_VARIANT=
@@ -613,11 +608,6 @@ function set_build_options_for_host() {
613
608
SWIFT_HOST_VARIANT_ARCH=" arm64"
614
609
615
610
cmake_osx_deployment_target=" "
616
- cmark_cmake_options=(
617
- -DCMAKE_C_FLAGS=" $( cmark_c_flags ${host} ) "
618
- -DCMAKE_CXX_FLAGS=" $( cmark_c_flags ${host} ) "
619
- -DCMAKE_OSX_SYSROOT:PATH=" $( xcrun --sdk ${xcrun_sdk_name} --show-sdk-path) "
620
- )
621
611
;;
622
612
iphoneos-arm64)
623
613
SWIFT_HOST_TRIPLE=" arm64-apple-ios${DARWIN_DEPLOYMENT_VERSION_IOS} "
@@ -649,11 +639,6 @@ function set_build_options_for_host() {
649
639
SWIFT_HOST_VARIANT_ARCH=" arm64"
650
640
651
641
cmake_osx_deployment_target=" "
652
- cmark_cmake_options=(
653
- -DCMAKE_C_FLAGS=" $( cmark_c_flags ${host} ) "
654
- -DCMAKE_CXX_FLAGS=" $( cmark_c_flags ${host} ) "
655
- -DCMAKE_OSX_SYSROOT:PATH=" $( xcrun --sdk ${xcrun_sdk_name} --show-sdk-path) "
656
- )
657
642
;;
658
643
appletvos-arm64)
659
644
SWIFT_HOST_TRIPLE=" arm64-apple-tvos${DARWIN_DEPLOYMENT_VERSION_TVOS} "
@@ -685,11 +670,6 @@ function set_build_options_for_host() {
685
670
SWIFT_HOST_VARIANT_ARCH=" arm64"
686
671
687
672
cmake_osx_deployment_target=" "
688
- cmark_cmake_options=(
689
- -DCMAKE_C_FLAGS=" $( cmark_c_flags ${host} ) "
690
- -DCMAKE_CXX_FLAGS=" $( cmark_c_flags ${host} ) "
691
- -DCMAKE_OSX_SYSROOT:PATH=" $( xcrun --sdk ${xcrun_sdk_name} --show-sdk-path) "
692
- )
693
673
;;
694
674
watchos-armv7k)
695
675
SWIFT_HOST_TRIPLE=" armv7k-apple-watchos${DARWIN_DEPLOYMENT_VERSION_WATCHOS} "
@@ -725,13 +705,6 @@ function set_build_options_for_host() {
725
705
726
706
cmake_os_sysroot=" $( xcrun --sdk ${platform} --show-sdk-path) "
727
707
728
- cmark_cmake_options=(
729
- -DCMAKE_C_FLAGS=" $( cmark_c_flags ${host} ) "
730
- -DCMAKE_CXX_FLAGS=" $( cmark_c_flags ${host} ) "
731
- -DCMAKE_OSX_SYSROOT:PATH=" ${cmake_os_sysroot} "
732
- -DCMAKE_OSX_DEPLOYMENT_TARGET=" ${cmake_osx_deployment_target} "
733
- -DCMAKE_OSX_ARCHITECTURES=" ${architecture} "
734
- )
735
708
llvm_cmake_options=(
736
709
-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=" ${cmake_osx_deployment_target} "
737
710
-DCMAKE_OSX_SYSROOT:PATH=" ${cmake_os_sysroot} "
@@ -1233,7 +1206,6 @@ SWIFT_SYNTAX_SOURCE_DIR="${WORKSPACE}/swift-syntax"
1233
1206
# like tblgen that Swift relies on for building and testing. See the LLVM
1234
1207
# configure rules.
1235
1208
PRODUCTS=(llvm)
1236
- [[ " ${SKIP_BUILD_CMARK} " ]] || PRODUCTS+=(cmark)
1237
1209
[[ " ${SKIP_BUILD_LIBCXX} " ]] || PRODUCTS+=(libcxx)
1238
1210
[[ " ${SKIP_BUILD_LIBICU} " ]] || PRODUCTS+=(libicu)
1239
1211
[[ " ${SKIP_BUILD_SWIFT} " ]] || PRODUCTS+=(swift)
@@ -1298,9 +1270,6 @@ function build_directory_bin() {
1298
1270
root=" $( build_directory ${host} ${product} ) "
1299
1271
if [[ " ${CMAKE_GENERATOR} " == " Xcode" ]] ; then
1300
1272
case ${product} in
1301
- cmark)
1302
- echo " ${root} /${CMARK_BUILD_TYPE} /bin"
1303
- ;;
1304
1273
llvm)
1305
1274
echo " ${root} /${LLVM_BUILD_TYPE} /bin"
1306
1275
;;
@@ -1396,10 +1365,6 @@ function llvm_c_flags() {
1396
1365
fi
1397
1366
}
1398
1367
1399
- function cmark_c_flags() {
1400
- echo -n " $( common_cross_c_flags $1 ${CMARK_BUILD_TYPE} ) "
1401
- }
1402
-
1403
1368
function swift_c_flags() {
1404
1369
# Don't pass common_cross_c_flags to Swift because CMake code in the Swift
1405
1370
# project is itself aware of cross-compilation for the host tools and
@@ -1424,9 +1389,6 @@ function cmake_config_opt() {
1424
1389
# CMake automatically adds --target ALL_BUILD if we don't pass this.
1425
1390
echo " --target ZERO_CHECK "
1426
1391
case ${product} in
1427
- cmark)
1428
- echo " --config ${CMARK_BUILD_TYPE} "
1429
- ;;
1430
1392
llvm)
1431
1393
echo " --config ${LLVM_BUILD_TYPE} "
1432
1394
;;
@@ -1725,18 +1687,6 @@ for host in "${ALL_HOSTS[@]}"; do
1725
1687
cmake_options+=(" ${product_cmake_options[@]} " )
1726
1688
1727
1689
case ${product} in
1728
- cmark)
1729
- cmake_options=(
1730
- " ${cmake_options[@]} "
1731
- -DCMAKE_BUILD_TYPE:STRING=" ${CMARK_BUILD_TYPE} "
1732
- " ${cmark_cmake_options[@]} "
1733
- )
1734
- if [[ $( is_cross_tools_host ${host} ) ]] ; then
1735
- cmake_options+=(" ${SWIFT_TARGET_CMAKE_OPTIONS[@]} " )
1736
- fi
1737
- build_targets=(all)
1738
- ;;
1739
-
1740
1690
llvm)
1741
1691
if [[ -n " ${LLVM_NINJA_TARGETS_FOR_CROSS_COMPILE_HOSTS} " && $( is_cross_tools_host ${host} ) ]] ; then
1742
1692
build_targets=(" ${LLVM_NINJA_TARGETS_FOR_CROSS_COMPILE_HOSTS[@]} " )
@@ -2893,17 +2843,6 @@ for host in "${ALL_HOSTS[@]}"; do
2893
2843
fi
2894
2844
2895
2845
case ${product} in
2896
- cmark)
2897
- if [[ " ${SKIP_TEST_CMARK} " ]]; then
2898
- continue
2899
- fi
2900
- executable_target=api_test
2901
- results_targets=(test)
2902
- if [[ " ${CMAKE_GENERATOR} " == " Xcode" ]]; then
2903
- # Xcode generator uses "RUN_TESTS" instead of "test".
2904
- results_targets=(RUN_TESTS)
2905
- fi
2906
- ;;
2907
2846
llvm)
2908
2847
continue # We don't test LLVM
2909
2848
;;
@@ -3229,11 +3168,6 @@ for host in "${ALL_HOSTS[@]}"; do
3229
3168
INSTALL_TARGETS=" install"
3230
3169
3231
3170
case ${product} in
3232
- cmark)
3233
- if [[ -z " ${INSTALL_CMARK} " ]] ; then
3234
- continue
3235
- fi
3236
- ;;
3237
3171
llvm)
3238
3172
if [[ -z " ${INSTALL_LLVM} " ]] ; then
3239
3173
continue
0 commit comments