From 9f3dad40965688556197d5f4ac66bc5f07374d77 Mon Sep 17 00:00:00 2001 From: Egor Zhdan Date: Fri, 4 Oct 2024 17:25:26 +0100 Subject: [PATCH] [cxx-interop] Workaround a compiler crash on Ubuntu 22.04 Swift is crashing on Ubuntu 22.04 when compiling benchmarks for `std::span`. rdar://136875225 --- benchmark/cxx-source/CxxSpanTests.swift | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/benchmark/cxx-source/CxxSpanTests.swift b/benchmark/cxx-source/CxxSpanTests.swift index 1b42d3a9664..9448a83e927 100644 --- a/benchmark/cxx-source/CxxSpanTests.swift +++ b/benchmark/cxx-source/CxxSpanTests.swift @@ -11,16 +11,17 @@ //===----------------------------------------------------------------------===// import TestsUtils -import CxxStdlibPerformance -import CxxStdlib // FIXME(rdar://128520766): this import should be redundant - -let iterRepeatFactor = 7 // FIXME swift-ci linux tests do not support std::span #if os(Linux) public let benchmarks = [BenchmarkInfo]() #else +import CxxStdlibPerformance +import CxxStdlib // FIXME(rdar://128520766): this import should be redundant + +let iterRepeatFactor = 7 + public let benchmarks = [ BenchmarkInfo( name: "CxxSpanTests.raw.iterator",