blob: 2c55dddc2a0fb4e41d5f025dfe4b9a0130f713d9 [file] [log] [blame]
Andy Polyakov38c56742016-04-19 20:41:18 +02001# 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 Levitte3b6c4b02017-12-01 15:29:05 +010010my %targets = (
Andy Polyakov38c56742016-04-19 20:41:18 +020011 "VC-WIN64A-masm" => {
Andy Polyakovfe9aa762017-02-19 22:11:29 +010012 inherit_from => [ "VC-WIN64-common", asm("x86_64_asm"),
13 sub { $disabled{shared} ? () : "x86_64_uplink" } ],
Richard Levitteabe256e2018-03-06 20:35:30 +010014 AS => "ml64",
15 ASFLAGS => "/nologo /Zi",
Andy Polyakov3acfc402016-04-20 10:22:47 +020016 asoutflag => "/Fo",
Richard Levitteabe256e2018-03-06 20:35:30 +010017 asflags => "/c /Cp /Cx",
Andy Polyakovfe9aa762017-02-19 22:11:29 +010018 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 Polyakov38c56742016-04-19 20:41:18 +020022 },
23);