Explicitly import CoreFoundation (#413)

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
This commit is contained in:
yonihemi 2021-06-30 21:14:59 +08:00 committed by GitHub
parent 9aa88a1978
commit 2dcbc67cd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@
//
import Foundation
import CoreFoundation
extension CGPoint {
func rotate(_ angle: Angle, around origin: Self) -> Self {