Commit Graph

9 Commits

Author SHA1 Message Date
Ben Langmuir
fd1875dcfb [test] Move availability tests to later fake OS versions
10.50 was once greater than any real macOS version, but now it compares
less than real released versions, which makes these tests depend on the
deployment target unnecessarily. Update these tests to use even larger
numbers to hopefully keep them independent a little longer.
2024-08-21 11:38:54 -07:00
Allan Shortlidge
a58ad6ba33 Frontend: Remove support for the -check-api-availability-only flag.
The functionality for this flag is no longer necessary because the emit module jobs for deprecated architectures no longer use an artificially low deployment target.

Resolves rdar://104758113
2023-03-23 23:02:13 -07:00
Arnold Schwaighofer
907d4a672b The test Sema/api-availability-only.swift fails on arm64 on the bots
rdar://86537686
2021-12-15 12:42:50 -08:00
Alexis Laferrière
69ee427532 [Sema] Fix reports on async when checking only the API availability
-check-api-availability-only limits availability checking to the API
only, ensuring that was will appear in the swiftinterface is sound but
without raising issues about implementation details. This patch ensures
it correctly ignore non-public async functions as they wouldn't appear
in the API.

rdar://86174644
2021-12-09 11:34:33 -08:00
Alexis Laferrière
c4f226e541 [Driver] Move the flag -check-api-availability-only to the driver 2021-10-26 09:28:59 -07:00
Alexis Laferrière
d2ec6b9de4 [Frontend] Forbid IR generation with -check-api-availability-only 2021-10-25 13:47:42 -07:00
Alexis Laferrière
1a3f28500b [Sema] Don't check availability in assigned properties initializers
For a non-public property where the type is defined by an assignment, like
`internal var internalAssigned = NewStruct()`, type-checking the type's
availability is done via checking the initializer expression.

In -check-api-availaiblity-only mode, pass down a flag to not check
availability in expressions for initializer expressions of such
non-public properties.

rdar://84389825
2021-10-25 13:46:53 -07:00
LucianoAlmeida
c109366d32 [tests] Make some tests that are x86_64 hardcode that are failing on arm64 run with %target-cpu 2021-10-10 12:27:43 -03:00
Alexis Laferrière
a34953ece9 [Sema] Intro flag to limit availability checks to the API
Intro the frontend flag `-check-api-availability-only` that limits
availability checking to the API and SPI. This mode doesn't check the
availability of non-inlinable function bodies and of non-ABI-public decl
signatures.

This mode goal is to check all that is printed in the swiftinterface
file. It should be used in place of the wider
`-disable-availability-checking` when generating an interface for
platforms with no binaries.

rdar://81679692
2021-10-07 17:14:55 -07:00