mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This teaches Swift to rebuild the CxxStdlib overlay module from its interface when using a C++ standard library that is not the platform default, specifically libc++ on Linux. rdar://138838506
11 lines
420 B
Swift
11 lines
420 B
Swift
// This test runs another test, use-std-chrono.swift, with libc++ explicitly specified as the C++ stdlib.
|
|
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: %target-build-swift %S/use-std-chrono.swift -I %S/Inputs -o %t/exe -cxx-interoperability-mode=upcoming-swift -Xcc -stdlib=libc++
|
|
// RUN: %target-codesign %t/exe
|
|
// RUN: %target-run %t/exe
|
|
|
|
// REQUIRES: executable_test
|
|
// REQUIRES: OS=linux-gnu
|
|
// REQUIRES: system_wide_libcxx
|