-
Notifications
You must be signed in to change notification settings - Fork 987
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
Allow building against cosmopolitan libc #837
Conversation
These changes seem ok to me. The change in With these changes and a small adjustment to
or specifically for x86_64 with
Leaving out |
Hi @mflatt ! Actually that change to the makefile wouldn't be necessary, cosmocc's platform specific compilers already work with Chez's existing cross compilation pipeline. The bit about compiling the 4 objects at once is only a problem with the I have a different branch that includes building for CI, I just haven't had a chance to clean it up yet. The build script works and creates an image that runs on amd64 and aarch64 |
@mflatt I pulled the CI scripts into this PR. If it would be too much hassle to maintain I understand, but I thought it would be illustrative at least. The build artifact is The name is a convention in the cosmo community, since To note, I did test |
c2bdd7a
to
95977aa
Compare
One last change, since dynamic linking thru |
@jjsullivan5196 — Thank you for the updates, and sorry for the long delay! As you anticipated, the CI scripts seem like more than we'd want to take on right now. But they do seem usefully illustrative, and I wonder how we can keep them in the record for future reference. I'd like to merge the rest, and we normally merge changes using "Squash and merge" and keep the PR number in the commit message. So, whatever would keep them in this PR (and not in the result) would be good. Attaching the scripts as files to a comment? |
4b87fe2
to
2959ffa
Compare
Hi @mflatt No worries on the wait, this was more a hobby interest than anything, but always happy to get a really great scheme more places! I force pushed out the CI scripts, but kept them in a separate branch here jjsullivan5196@4b87fe2 Also as for properly preserving these, there's a software distribution that was made by one of the cosmo maintainers, I think that might be the most appropriate place to keep that information permanently. I'll work on a patch and send it to them, and update this thread if it gets accepted https://github.com/ahgamut/superconfigure |
Thanks! |
Accompanies the same changes in the racket repo racket/racket#5004This was originally a patch just to get racket to build on cosmopolitan libc, which unfortunately would require more heavy lifting in the main distribution to work. I took what I had there and made it so that at least Chez will work more or less as advertised, a single binary that can hit many common operating systems on amd64 and aarch64, with no installation required.
See the cosmopolitan project page for more information https://github.com/jart/cosmopolitan