-
Notifications
You must be signed in to change notification settings - Fork 23
Description
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.