Files
swift-mirror/test/Frontend/emit-module-api-descriptor.swift
Eric Miotto 7870afb78a TDBGen: amend file type for SwiftAPIDescriptor (#69150)
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
2023-10-12 12:44:06 -07:00

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