Skip to content

Commit aa81037

Browse files
committed
Add canImport for CI
1 parent aff32e6 commit aa81037

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/RegexBenchmark/BenchmarkChart.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//
1010
//===----------------------------------------------------------------------===//
1111

12-
#if os(macOS)
12+
#if os(macOS) && canImport(Charts)
1313

1414
import Charts
1515
import SwiftUI

Sources/RegexBenchmark/BenchmarkResults.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ extension BenchmarkRunner {
100100
print(item)
101101
}
102102

103-
#if os(macOS)
103+
#if os(macOS) && canImport(Charts)
104104
if showChart {
105105
print("""
106106
=== Comparison chart =================================================================

0 commit comments

Comments
 (0)