mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
21 lines
776 B
Plaintext
21 lines
776 B
Plaintext
# REQUIRES: OS=macosx
|
|
# REQUIRES: standalone_build
|
|
# REQUIRES: target-same-as-host
|
|
|
|
# RUN: %empty-directory(%t)
|
|
# RUN: %empty-directory(%t/build)
|
|
# RUN: %empty-directory(%t/ninja)
|
|
|
|
# Set up a local clone of swift in a temporary workspace and add a sibling
|
|
# linked worktree to the clone.
|
|
# RUN: git clone --depth 1 file://%swift_src_root %t/swift
|
|
# RUN: git -C %t/swift worktree add --detach %t/swift-worktree
|
|
|
|
# Invoke the build script from the worktree.
|
|
# RUN: %t/swift-worktree/utils/build-script --dry-run --cmake %cmake | %FileCheck -DARCH=%target-arch %s
|
|
|
|
# We should generate a build system for the linked worktree, not the main
|
|
# worktree.
|
|
# CHECK: {{^}}+ mkdir -p {{.*}}/swift-macosx-[[ARCH]]{{$}}
|
|
# CHECK: {{^}}+ env {{.+}}/cmake -G Ninja {{.*}}/swift-worktree{{$}}
|