Skip to content

Commit 9f3dad4

Browse files
committed
[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
1 parent 9eebcbc commit 9f3dad4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

benchmark/cxx-source/CxxSpanTests.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,17 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import TestsUtils
14-
import CxxStdlibPerformance
15-
import CxxStdlib // FIXME(rdar://128520766): this import should be redundant
16-
17-
let iterRepeatFactor = 7
1814

1915
// FIXME swift-ci linux tests do not support std::span
2016
#if os(Linux)
2117
public let benchmarks = [BenchmarkInfo]()
2218
#else
2319

20+
import CxxStdlibPerformance
21+
import CxxStdlib // FIXME(rdar://128520766): this import should be redundant
22+
23+
let iterRepeatFactor = 7
24+
2425
public let benchmarks = [
2526
BenchmarkInfo(
2627
name: "CxxSpanTests.raw.iterator",

0 commit comments

Comments
 (0)