mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This is to match the one SwiftDriver expects, so that we generate API descriptors when they are specified in supplementary output files. Addresses rdar://116809713
11 lines
467 B
Swift
11 lines
467 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: echo 'print("Hello, World!")' >%t/main.swift
|
|
// RUN: cd %t
|
|
|
|
// RUN: %target-swift-frontend -emit-module -emit-api-descriptor-path %t/main.api.json %t/main.swift
|
|
// RUN: test -f %t/main.api.json
|
|
|
|
// RUN: echo '"%/t/main.swift": { api-descriptor-json: "%/t/foo.api.json" }' > %/t/filemap.yaml
|
|
// RUN: %target-swift-frontend -emit-module -supplementary-output-file-map %/t/filemap.yaml %/t/main.swift
|
|
// RUN: test -f %t/foo.api.json
|