Subject: | "Build.PL" options do not persistent for "./Build ..." |
Date: | Sun, 11 Aug 2013 20:14:20 -0400 |
To: | bug-Module-Build-Tiny [...] rt.cpan.org |
From: | Justin Davis <jrcd83 [...] gmail.com> |
I noticed a slight discrepancy between MB and MBT's behavior. MB
behaves in the following way. Options given as command-line arguments
or environment variables during the execution of Build.PL persist for
each call of the generated Build script. The subsequent calls to Build
(eg: ./Build build; ./Build install) behave as if they too were
provided the same options that were provided to the Build.PL script
earlier. MBT does not do any option checking or retention during the
execution of Build.PL.
Personally, I think the option specification in MB is more complicated
than it needs to be. Nonetheless if your goal is to match MB's
interface as much as possible I would recommend matching this behavior
as well. The current differing behavior caused a surprise in a system
I use for packaging modules.
If you would like I could supply you with a patch. Would you like me
to create a patch for this feature request?
-juster