Skip to content
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

Add support for cosmopolitan compiler #1522

Open
bnjmnjrk opened this issue Jan 16, 2025 · 0 comments
Open

Add support for cosmopolitan compiler #1522

bnjmnjrk opened this issue Jan 16, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@bnjmnjrk
Copy link

Describe the problem you are trying to solve.
Whenever I compile the dist files with the cosmo compiler, I get errors about missing includes like execinfo.h and missing functions like strcat_s.

cosmo link: https://github.com/jart/cosmopolitan

Describe the solution you'd like.
I suspect that adding support for the COSMO compiler is easy, as it adds the __COSMOCC__ preprocessor directive, with which we can easily use the strcat instead of the strcat_s functions (#define ECS_TARGET_POSIX, Cosmo generates POSIX approved polyglots ~see their readme), and disable execinfo (#define HAVE_EXECINFO 0).

The only thing I don't know is how to generate the dist files, is there a shell script somewhere?

@bnjmnjrk bnjmnjrk added the enhancement New feature or request label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant