OpenSSL::config: determine the MSVC target architecture by asking cl
authorRichard Levitte <levitte@openssl.org>
Tue, 27 Sep 2022 16:31:15 +0000 (18:31 +0200)
committerHugo Landau <hlandau@openssl.org>
Thu, 29 Sep 2022 11:59:00 +0000 (12:59 +0100)
commit0747f94b5f7b7f07f21384507ba1adaea6f99e88
treeaf420a7e471f6797fc53db2d226b542a1a886677
parent2de00f4f1e20d3dd4cb8e3165f30146c1294f6d4
OpenSSL::config: determine the MSVC target architecture by asking cl

Since cl knows what architecture it builds fore, all depending on what
the user set up, it makes sense to ask it, and use that result primarly,
and only use the POSIX::uname() MACHINE value as a fallback.

Also, this does indeed determine if cl is present or not.

We drop the explicit names in .github/workflows/windows.yml as proof
of concept.

Fixes #19281

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19285)
.github/workflows/windows.yml
util/perl/OpenSSL/config.pm