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

GCC_PREFIX_HEADER & GCC_PRECOMPILE_PREFIX_HEADER incompatible with Electron 20 #1069

Open
nkallen opened this issue Feb 6, 2023 · 0 comments

Comments

@nkallen
Copy link

nkallen commented Feb 6, 2023

cxxflags.push('-std=c++17');

Hi --

I believe (not 100% sure) that this line of code is to blame. PCH (precompiled headers) need to be generated for every language in the project (c, c++, etc). I have a project that has a couple c files and is mostly c++. But the precompiled header is being compiled with -std=c++17 even for the c version of the header, which errors.

I'm not sure what the best solution is.

This issue arises on Mac as GCC_PREFIX_HEADER is part of XCODE_SETTINGS

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