Files
swift-mirror/test/Interop/Cxx/stdlib/use-std-chrono-libcxx.swift
Egor Zhdan 282f3b127b [cxx-interop] Support CxxStdlib overlay for libc++ on Linux
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
2024-12-10 14:19:59 +00:00

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