-
Notifications
You must be signed in to change notification settings - Fork 7
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
Support cross-VM installation #7
base: master
Are you sure you want to change the base?
Conversation
I've tried building for
I'll try the result with a Racket distribution for |
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.
Okay, well, I should have taken a look at this pull request before duplicating all of your work, sigh. I see that you've included code to dynamically build the callbacks library.
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.
question: is the cc.rkt file triggered dynamically, or is it intended to be used manually to build missing libraries? I think I'd basically like to grab the cc.rkt file from this pull request, so as not to lose this. It's a nice piece of work, and probably nicer than having the makefiles.
I only got as far as using |
Actually, I think I'm more a fan of building them manually for linux platforms as well; there's no guarantee that a user on a linux platform has a C compiler installed. |
Are you willing to trim this PR down to just include the cc.rkt file? I'm happy to do it myself, but then you won't get credit for it. If you care :). |
Use some indirection to avoid a package dependency on `dynext-lib`, since the intent is for "cc.rkt" to be used manually.
5c411b8
to
9b09c3f
Compare
Sorry it's taken me a while to get back to this. I've changed this to just add "cc.rkt", and I've added a bit of |
The bespoke C code is already VM independent, but it was being needlessly linked with
mzdyn
anyway, and the build libraries were going to VM-specific places rather than the VM-independent place (in the sense of(system-library-subpath #f)
).Closes #6.
This works on x86_64 Mac OS. I still need to adjust the build process for i386 Mac OS and the both Linux variants. A complication is that
raco ctool
doesn't seem to have a flag to do the the equivalent of(parameterize ([current-use-mzdyn #f]) ...)
(should it?).