summaryrefslogtreecommitdiff
path: root/lib/Debian
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2019-10-12 12:18:54 +0000
committerNiels Thykier <niels@thykier.net>2019-10-12 12:18:54 +0000
commit86f001d464d4e0eb6e57ebc6a0c79dd83e410609 (patch)
treefe9b927e7346bcfeabbb909ef287cd9101fe722b /lib/Debian
parent86c918958e61309e792110e165b03c21e69beb79 (diff)
downloaddebhelper-86f001d464d4e0eb6e57ebc6a0c79dd83e410609.tar.gz
dh_auto_*: Support reload-all-buildenv-variables
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'lib/Debian')
-rw-r--r--lib/Debian/Debhelper/Dh_Buildsystems.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Debian/Debhelper/Dh_Buildsystems.pm b/lib/Debian/Debhelper/Dh_Buildsystems.pm
index d0e69d8c..715c7089 100644
--- a/lib/Debian/Debhelper/Dh_Buildsystems.pm
+++ b/lib/Debian/Debhelper/Dh_Buildsystems.pm
@@ -201,7 +201,15 @@ sub buildsystems_init {
"parallel" => sub { $max_parallel = -1 },
'no-parallel' => sub { $max_parallel = 1 },
"max-parallel=i" => \$max_parallel,
+
+ 'reload-all-buildenv-variables' => sub { delete($ENV{'DH_INTERNAL_BUILDFLAGS'}); },
);
+ if (compat(8)) {
+ # This option only works in compat 9+ where we actually set buildflags
+ $options{'reload-all-buildenv-variables'} = sub {
+ die("--reload-all-buildenv-variables only work reliably in compat 9+");
+ };
+ }
$args{options}{$_} = $options{$_} foreach keys(%options);
Debian::Debhelper::Dh_Lib::init(%args);
Debian::Debhelper::Dh_Lib::set_buildflags();