Skip to content

Use via Inline::C with compiler flags is broken #430

@johannessen

Description

@johannessen

An Alien that sets cflags to something like -Ifoo -Dbar breaks when used via use Inline with.

The reason is that Alien::Base’s Inline() method puts all these flags into INC, while Inline::C quotes spaces in INC when flags other than -I appear inside it. The INC value that Inline::C passes on to EU:MM becomes "-Ifoo -Dbar". Consequently the compiler doesn’t look for a directory named foo, it looks for a directory named foo -Dbar instead.

A somewhat hacky workaround might be to include at least one double quote in cflags, which would currently prevent Inline::C from adding further quotes in its quote_spaces() function.

But I think the proper solution for Alien::Base would rather be to revert #109, putting the -D and other flags into CCFLAGSEX instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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