Andy Polyakov | 38c5674 | 2016-04-19 20:41:18 +0200 | [diff] [blame] | 1 | # We can't make commitment to supporting Microsoft assembler, |
| 2 | # because it would mean supporting all masm versions. This in |
| 3 | # in turn is because masm is not really an interchangeable option, |
| 4 | # while users tend to have reasons to stick with specific Visual |
| 5 | # Studio versions. It's usually lesser hassle to make it work |
| 6 | # with latest assembler, but tweaking for older versions had |
| 7 | # proven to be daunting task. This is experimental target, for |
| 8 | # production builds stick with [up-to-date version of] nasm. |
| 9 | |
Richard Levitte | 3b6c4b0 | 2017-12-01 15:29:05 +0100 | [diff] [blame] | 10 | my %targets = ( |
Andy Polyakov | 38c5674 | 2016-04-19 20:41:18 +0200 | [diff] [blame] | 11 | "VC-WIN64A-masm" => { |
Andy Polyakov | fe9aa76 | 2017-02-19 22:11:29 +0100 | [diff] [blame] | 12 | inherit_from => [ "VC-WIN64-common", asm("x86_64_asm"), |
| 13 | sub { $disabled{shared} ? () : "x86_64_uplink" } ], |
Richard Levitte | abe256e | 2018-03-06 20:35:30 +0100 | [diff] [blame] | 14 | AS => "ml64", |
| 15 | ASFLAGS => "/nologo /Zi", |
Andy Polyakov | 3acfc40 | 2016-04-20 10:22:47 +0200 | [diff] [blame] | 16 | asoutflag => "/Fo", |
Richard Levitte | abe256e | 2018-03-06 20:35:30 +0100 | [diff] [blame] | 17 | asflags => "/c /Cp /Cx", |
Andy Polyakov | fe9aa76 | 2017-02-19 22:11:29 +0100 | [diff] [blame] | 18 | sys_id => "WIN64A", |
| 19 | bn_asm_src => sub { return undef unless @_; |
| 20 | my $r=join(" ",@_); $r=~s|asm/x86_64-gcc|bn_asm|; $r; }, |
| 21 | perlasm_scheme => "masm", |
Andy Polyakov | 38c5674 | 2016-04-19 20:41:18 +0200 | [diff] [blame] | 22 | }, |
| 23 | ); |