]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - Configurations/50-masm.conf
Configure: add mechanism to specify uplink target architecture
[thirdparty/openssl.git] / Configurations / 50-masm.conf
index 60a55072f2560644ee4d5b5830c38efe299f97f7..345a2402ef28da7b1e7af9415e7e6c8e32e8e161 100644 (file)
@@ -7,11 +7,18 @@
 # proven to be daunting task. This is experimental target, for
 # production builds stick with [up-to-date version of] nasm.
 
-%targets = (
+my %targets = (
     "VC-WIN64A-masm" => {
-        inherit_from    => [ "VC-WIN64A" ],
-        as              => "ml64",
-        asflags         => "/c /Cp /Cx /Zi",
+        inherit_from    => [ "VC-WIN64-common", asm("x86_64_asm"),
+                             sub { $disabled{shared} ? () : "x86_64_uplink" } ],
+        AS              => "ml64",
+        ASFLAGS         => "/nologo /Zi",
         asoutflag       => "/Fo",
+        asflags         => "/c /Cp /Cx",
+        sys_id          => "WIN64A",
+        bn_asm_src      => sub { return undef unless @_;
+                                 my $r=join(" ",@_); $r=~s|asm/x86_64-gcc|bn_asm|; $r; },
+        uplink_arch      => 'x86_64',
+        perlasm_scheme   => "masm",
     },
 );