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

How to force a standard for compilation? #31

Open
max-carriers opened this issue Nov 3, 2020 · 1 comment
Open

How to force a standard for compilation? #31

max-carriers opened this issue Nov 3, 2020 · 1 comment

Comments

@max-carriers
Copy link

max-carriers commented Nov 3, 2020

What can I do if I need to force a standard to compile the c code to webassembly?
I'm trying to compile it with the C90 Ansi standard, and I have no clues about the one used by the compiler of this module

@max-carriers
Copy link
Author

The only solution I found so far is to try to compile the code with the "gcc" compiler and see if anything goes wrong, then if everything is ok I recompile it to webassembly.

To be clear, the command I'm using to compile the code with gcc is:

gcc -ansi -pedantic main.c -Wall

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant