Skip to content

ImportC: The preprocessor is improperly invoked, on macOS, when cross-compiling #23356

Description

@just-harry

On macOS, when DMD invokes the C preprocessor, it does so improperly when the -os command-line switch is set to anything other than host or osx.

When cross-compiling, the preprocessor is invoked as though it were GCC instead of clang (which is what it is expected to be when running on macOS).

This results in clang attempting to compile and link the file that was submitted for preprocessing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions