platformio / platform-native

Native: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/native
Apache License 2.0
21 stars 27 forks source link

Different compiler #9

Closed dzarda closed 3 years ago

dzarda commented 3 years ago

I'd like to invoke emcc/em++ (Emscripten) instead of GCC during native compilation. I cannot figure out how to do that.

One possible solution should be to have an argument forwarding script named gcc and prepend PATH with it. This would call emcc. What would be a cleaner solution?

Note Emscripten wouldn't support symlinking gcc to emcc, I don't think

ivankravets commented 3 years ago

Duplicate of https://github.com/platformio/platform-native/issues/8