mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Using Clang to compile API notes introduces a dependency on the underlying Clang, which can cause problems as Clang's support for API notes evolves. Re-introduce the "-apinotes" driver flag into the Swift driver to allow us to compile API notes, and use that (rather than Clang) to precompile API notes for the overlays.
8 lines
341 B
Swift
8 lines
341 B
Swift
# RUN: %swift_driver_plain -apinotes -yaml-to-binary -o %t.apinotesc %S/Inputs/roundtrip.apinotes
|
|
# RUN: %swift_driver_plain -apinotes -binary-to-yaml -o %t.apinotes %t.apinotesc
|
|
|
|
# Note: We don't diff the results because they will change as Clang's
|
|
# API notes support evolves, and we don't want to tie that closely to
|
|
# a specific Clang.
|
|
|