Skip to content

Commit

Permalink
Explicitly import CoreFoundation (#413)
Browse files Browse the repository at this point in the history
This allows TokamakDemo to be built with [latest SwiftWasm 5.4 toolchain](https://github.com/swiftwasm/swift/releases/tag/swift-wasm-5.4-SNAPSHOT-2021-06-17-a) in **debug mode** (compiler still crashes when building for release).

BTW this import could be anywhere in the target, couldn't find a file that felt natural to include it in.

* Move import statement to CGStubs.swift
  • Loading branch information
yonihemi committed Jun 30, 2021
1 parent 9aa88a1 commit 2dcbc67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/TokamakCore/Stubs/CGStubs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
//

import Foundation
import CoreFoundation

extension CGPoint {
func rotate(_ angle: Angle, around origin: Self) -> Self {
Expand Down

0 comments on commit 2dcbc67

Please sign in to comment.