summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-01-18 13:32:41 +0000
committerSadie Powell <sadie@witchery.services>2020-01-18 13:32:41 +0000
commit04b5090a2f65a2e3380a32e5cd0b4936716ec394 (patch)
treecd30ee7a35ed6e38fe8adc6fd9b745537d5a8a0a /tools
parent2c33a3027b3db65961e58f4b45e61496ff988897 (diff)
Disable auto extras when TEST_BUILD_MODULES is set in test-build.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/test-build8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/test-build b/tools/test-build
index 978b60bc1..48988b687 100755
--- a/tools/test-build
+++ b/tools/test-build
@@ -55,8 +55,12 @@ foreach my $compiler (@compilers) {
push @socketengines, 'poll' if test_header $compiler, 'poll.h';
foreach my $socketengine (@socketengines) {
say "Attempting to build using the $compiler compiler and the $socketengine socket engine...";
- system './configure', '--enable-extras', $ENV{TEST_BUILD_MODULES} if defined $ENV{TEST_BUILD_MODULES};
- if (system './configure', '--development', '--socketengine', $socketengine) {
+ my @configure_flags;
+ if (defined $ENV{TEST_BUILD_MODULES}) {
+ system './configure', '--enable-extras', $ENV{TEST_BUILD_MODULES};
+ push @configure_flags, '--disable-auto-extras';
+ }
+ if (system './configure', '--development', '--socketengine', $socketengine, @configure_flags) {
say "Failed to configure using the $compiler compiler and the $socketengine socket engine!";
exit 1;
}