charto / nbind

:sparkles: Magical headers that make your C++ library accessible from JavaScript :rocket:
MIT License
1.98k stars 119 forks source link

Fix C source files compilation #57

Closed arcanis closed 7 years ago

arcanis commented 7 years ago

The current flags break C compilation when building with --asmjs, because emscripten doesn't understand why C++-specific flags are used with the C compiler. This commit fix this by splitted the flags as cflags and cflags_cc.

jjrv commented 7 years ago

Thank you for the PR!