Skip to content

Commit 9dc8267

Browse files
committed
[NFC] Add lit test for Xcode project generation
1 parent cbdcc99 commit 9dc8267

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# RUN: %empty-directory(%t)
2+
# RUN: %empty-directory(%t/B)
3+
4+
# Build system generation for 'swift' depends on several LLVM tools
5+
# (e.g. llvm-tblgen). This is why we still build them with '--skip-build' or
6+
# '--skip-build-llvm' set, and have an additional '--build-llvm' option to
7+
# actually skip building that bare minimum too.
8+
#
9+
# To save time, borrow these dependencies from the current build directories,
10+
# and test Xcode project generation only for 'swift'.
11+
12+
# RUN: ln -s %swift_obj_root/../cmark-%target-os-%target-arch %t/B/cmark-%target-os-%target-arch
13+
# RUN: ln -s %swift_obj_root/../llvm-%target-os-%target-arch %t/B/llvm-%target-os-%target-arch
14+
# RUN: SWIFT_BUILD_ROOT=%t %swift_src_root/utils/build-script --cmake %cmake --swift-darwin-supported-archs="$(uname -m)" --build-subdir="B" --skip-build-cmark --build-llvm=0 --xcode
15+
16+
# REQUIRES: standalone_build
17+
# REQUIRES: OS=macosx
18+
# REQUIRES: long_test

0 commit comments

Comments
 (0)