Skip to content

Potential flag juggling issues, incorrectly handling -Xarch_* #2558

@gcampbell-msft

Description

@gcampbell-msft

In a recent PR in the OSS VTK repository, there was work to add a PCH which improved build time.

During this process, we found that there was an issue where sccache was incorrectly handling the -Xarch_* argument such that builds were failing with the following error:

c++: error: argument to '-Xarch_arm64' is missing (expected 1 value)
c++: error: argument to '-Xarch_x86_64' is missing (expected 1 value)

The full portion of the -Xarch_* argument was -Xarch_* -include<path>.

This also seems to have affected the kitware/cmake repository at some point in the past, as there is a comment in this file indicating the same issue.

This happened on both mac arm64 machines and macx86_64 machines.

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