qmake: Fix order-dependency of *.pro glob search.

Authored by mpyne on Apr 15 2018, 3:56 AM.

Description

qmake: Fix order-dependency of *.pro glob search.

The Mojolicious work exposed this bug but it's a bug all the same. The
way that Perl's glob function works differs based on whether you use it
in a scalar (including boolean) context or whether you use it in a list
context.

I had the parentheses in this test to try to force a list context but
that's apparently not sufficient as I had every fourth Qt module
failing to build due to this glob failing, in my Mojolicious testing.

The revised test successfully forces glob() to use list context, which
means it always returns the same values for a given directory instead of
acting as a non-reentrant iterator.

Details

Committed
mpyneApr 15 2018, 3:56 AM
Parents
R365:9d09e4787898: git: Ensure we skip modules that we say we must skip.
Branches
Unknown
Tags
Unknown