aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/buildfile10
1 files changed, 6 insertions, 4 deletions
diff --git a/libbuild2/buildfile b/libbuild2/buildfile
index 578a4c8..edd0570 100644
--- a/libbuild2/buildfile
+++ b/libbuild2/buildfile
@@ -65,10 +65,12 @@ config/cxx{host-config}: config/in{host-config}
[null], \
return_lines)
- host_config = $regex.replace_lines( \
- $build2_config, \
- '^ *config\.(c[. ]|cxx[. ]|cc[.]|bin[.]).*$', \
- '$&', \
+ # Also preserve blank lines between groups of options.
+ #
+ host_config = $regex.replace_lines( \
+ $build2_config, \
+ '^( *config\.(c[. ]|cxx[. ]|cc[.]|bin[.]).*|)$', \
+ '$&', \
format_no_copy return_lines)
}