Skip to content

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

Closed

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.

Activity

  1. johannessen commented on Oct 24, 2025

    @johannessen
    Author
  2. plicease commented on Sep 12, 2026

    @plicease
    Member

    Yeah my preference would be to revert #109. However I think we may need to try to fix ExtUtils::Depends or maybe just return the broken config when ExtUtils::Depends calls the AB Inline method.

  3. plicease commented on Sep 21, 2026

    @plicease
    Member

    I've deployed #443 as a dev version 2.89_01. Can you give it a try? Either way will probably do a prod release with this change in the next couple weeks or so.

  4. johannessen commented on Sep 23, 2026

    @johannessen
    Author

    Frankly I am not interested in “giving LLM output a try.”

  5. plicease commented on Sep 23, 2026

    @plicease
    Member

    okay then.

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