Commit Graph

11 Commits

Author SHA1 Message Date
Finagolfin
15e1c73969 [android][test] Enable several C++ Interop and other tests
Also, fix lit.cfg for running the test suite natively in Android and mark one
SILOptimizer executable_test as such.
2024-07-20 17:56:51 +05:30
Alastair Houghton
f9ec4793e9 [Test] Add linker_overridden feature.
When testing different linkers, it's sometimes useful to run the tests
with `SWIFT_DRIVER_TEST_OPTIONS=" -use-ld=<linker>"`.  If we do this,
it will break a handful of tests because they expect the compiler driver
to choose an appropriate linker automatically.

To avoid having these fail, detect when someone has done this, and
set a new feature, `linker_overridden`, then mark the tests in question
with `UNSUPPORTED: linker_overridden`.

rdar://123504095
2024-04-29 10:48:22 +01:00
Artem Chikin
1f14158a1d Introduce VisionOS Platform
This change introduces a new compilation target platform to the Swift compiler - visionOS.

- Changes to the compiler build infrastrucuture to support building compiler-adjacent artifacts and test suites for the new target.
- Addition of the new platform kind definition.
- Support for the new platform in language constructs such as compile-time availability annotations or runtime OS version queries.
- Utilities to read out Darwin platform SDK info containing platform mapping data.
- Utilities to support re-mapping availability annotations from iOS to visionOS (e.g. 'updateIntroducedPlatformForFallback', 'updateDeprecatedPlatformForFallback', 'updateObsoletedPlatformForFallback').
- Additional tests exercising platform-specific availability handling and availability re-mapping fallback code-path.
- Changes to existing test suite to accomodate the new platform.
2024-04-10 09:38:02 -07:00
Finagolfin
30ba49e7fa [android][test] Fix a handful of tests and disable one CxxToSwiftToCxx bridging test
Also, make the analogous change to apple/swift-driver#1372, which gets the
sanitizer tests working on Android again, and remove the lld_lto feature in the
tests, which is now unused.
2023-08-12 16:36:35 +05:30
Arnold Schwaighofer
8f7e433c71 Fix LTO test to use just use libLTO.dylib
This is necessary until the Xcode toolchain's libLTO.dylib supports opaque pointers
2023-06-14 10:49:50 -07:00
Kuba (Brecka) Mracek
b8b717e71b Disable llvm_link_time_opt.swift test under ASan (#39325) 2021-09-16 07:37:25 -07:00
Kuba (Brecka) Mracek
a3c7d6c139 Use the just-built Darwin libLTO.dylib in lit tests (#39208) 2021-09-08 20:17:28 -07:00
Mishal Shah
558d15cc59 Revert "Disable test that's failing in CI" 2021-03-11 10:32:14 -08:00
Doug Gregor
676dfca902 Disable test that's failing in CI
Tracked by rdar://75301449
2021-03-10 22:21:54 -08:00
Daniel Rodríguez Troitiño
9a24aaf714 [android] Disable a test that needs LTO support.
With Gold from the Android NDK setting up LTO is complicated, and the CI
machines are not setup for it.

Disable this test in platforms that do not use LLD and LTO (which is
basically Android with older NDKs).
2020-09-27 20:22:41 -07:00
Yuta Saito
d6cddaabb5 [LTO] Support LLVM LTO for driver
This commit adds LTO support for handling linker options and LLVM BC
emission. Even for ELF, swift-autolink-extract is unnecessary because
linker options are embeded in LLVM BC content when LTO.
2020-07-31 10:17:59 +09:00