From c251ce6fe79400c3bc763c6b9543984f8b07c549 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 11 Feb 2022 11:09:27 +0200 Subject: [PATCH] Sort checks as strings to do it case-sensitively on Windows --- libbuild2-autoconf/libbuild2/autoconf/buildfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/buildfile b/libbuild2-autoconf/libbuild2/autoconf/buildfile index 2bb0a39..5d297f0 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/buildfile +++ b/libbuild2-autoconf/libbuild2/autoconf/buildfile @@ -21,9 +21,10 @@ lib{build2-autoconf}: {hxx ixx txx cxx}{* -checks} {hxx cxx}{checks} \ {{ diag gen ($>[1]) - # We have to sort without the extension. + # We have to sort without the extension and as strings (to sort + # case-sensitively on Windows). # - i = $regex.apply($sort($base($path($<))), '(.+)', '\1.h') + i = $regex.apply($sort([strings] $base($path($<))), '(.+)', '\1.h') h = $path($>[0]) s = $path($>[1])