50-masm.conf 1.1 KB

1234567891011121314151617181920212223
  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. my %targets = (
  10. "VC-WIN64A-masm" => {
  11. inherit_from => [ "VC-WIN64-common", asm("x86_64_asm"),
  12. sub { $disabled{shared} ? () : "x86_64_uplink" } ],
  13. AS => "ml64",
  14. ASFLAGS => "/nologo /Zi",
  15. asoutflag => "/Fo",
  16. asflags => "/c /Cp /Cx",
  17. sys_id => "WIN64A",
  18. bn_asm_src => sub { return undef unless @_;
  19. my $r=join(" ",@_); $r=~s|asm/x86_64-gcc|bn_asm|; $r; },
  20. perlasm_scheme => "masm",
  21. },
  22. );