electron/rebuild

Cannot use alternative CXX Library with Electron v20+

rroessler opened this issue · 0 comments

Any Electron project (v20+) using native dependencies with alternative c++20, c++2a or c++23 fails to rebuild. This occurs due to the CXX flag being forcibly set to c++17 due to this merge.

Currently there does not appear to be any way to override this other than the hacky solution of using Object.defineProperty for the process.env.CXXFLAGS property and removing the setter (eg: using the API programatically).

Is there any reasoning for not allowing newer library versions?