-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move cruntime to separate module #31
Conversation
let infoContext = ctx.assumingMemoryBound(to: PropertyInfoContext.self).mutable | ||
let pointer = unsafeBitCast(type, to: UnsafeRawPointer.self) | ||
swift_getFieldAt(pointer, UInt32(index), { name, type, ctx in | ||
guard let name = name, let ctx = ctx else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this look correct? Should this be a fatalError
instead perhaps? I'm not sure under what circumstances these would be nil
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea I would do a fatalError
instead. It shouldn't ever be nil
and if it is it will fail somewhere else because of it.
Not entirely sure. I don't have much experience with SwiftPM. My guess is the |
It doesn't look like you can have 2 packages in the same repo as explained here. I can create a new repo for the package if need be |
Ah would you mind? I can PR PS, would you prefer this be named |
Would prefer |
324469e
to
4b873a6
Compare
Hey, tests pass! I've updated the dependency to point to A few things:
Thanks again to everyone who helped! |
I've verified this works by pushing a GraphQL app to Vapor's Cloud service here: https://graphql-star-wars.v2.vapor.cloud/graphiql |
Sorry for the late response! Slipped my mind. Thanks again for tackling this! |
This moves
cruntime
to a separate module, which allows this framework to be built on Linux. Discussion: #18 (comment) and noahemmet@8d685eb*.xcodeproj
and*.xcworkspace
files, but if you'd like, I'm happy to add them to the.gitignore
.Thanks for everyone's help on this!