Skip to content

GCC_PREFIX_HEADER & GCC_PRECOMPILE_PREFIX_HEADER incompatible with Electron 20 #1069

Description

@nkallen

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions