Commit fffb1c54 authored by Andy Polyakov's avatar Andy Polyakov
Browse files

Configurations/10-main.conf: fix VC-noCE-common template.



picker() is type agnostic, but its output consumer is not. Or rather
it doesn't work if picker() picks nothing when consumer expects
array. So ensure array is returned when array is expected.

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5770)
parent ff455d99
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1285,7 +1285,8 @@ my %targets = (
                                       sub {
                                           ($disabled{shared} ? "" : "/MD");
                                       })),
        defines          => add(picker(debug   => [ "DEBUG", "_DEBUG" ])),
        defines          => add(picker(default => [], # works as type cast
                                       debug   => [ "DEBUG", "_DEBUG" ])),
        lib_cflags       => add(sub { $disabled{shared} ? "/MT /Zl" : () }),
        # Following might/should appears controversial, i.e. defining
        # /MDd without evaluating $disabled{shared}. It works in