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

Fix Makefile: correct emcc flags for latest Emscripten #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

slowriot
Copy link

Recent versions of emscripten (tested with 3.1.38) produce two separate fatal errors when building:

emcc: error: linker flag ignored during compilation: '--bind' [-Wunused-command-line-argument] [-Werror]

and

emcc: error: .bc output file suffix used without -flto or -emit-llvm. Consider using .o extension since emcc will output an object file, not a bitcode file [-Wemcc] [-Werror]

This pull request removes the --bind flag from compiler options (it's a linker flag only), and adds -emit-llvm to the bitcode generation step.

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

Successfully merging this pull request may close these issues.

None yet

1 participant