Support for NASM>=2 in Win64/x64 build.

This commit is contained in:
Andy Polyakov
2008-02-13 13:07:52 +00:00
parent 400ca0e467
commit a23e3dbee1
2 changed files with 76 additions and 41 deletions

View File

@@ -42,6 +42,7 @@ if ($FLAVOR =~ /WIN64/)
$bname =~ s/(.*)\.[^\.]$/$1/;
$ret=<<___;
\$(TMP_D)$o$bname.asm: $source
set ASM=\$(ASM)
\$(PERL) $source \$\@
$target: \$(TMP_D)$o$bname.asm
@@ -171,9 +172,15 @@ $lfile='/out:';
$shlib_ex_obj="";
$app_ex_obj="setargv.obj" if ($FLAVOR !~ /CE/);
if ($FLAVOR =~ /WIN64A/) {
$asm='ml64 /c /Cp /Cx';
$asm.=" /Zi" if $debug;
$afile='/Fo';
if (`nasm -v` =~ /NASM version ([0-9]+\.[0-9]+)/ && $1 >= 2.0) {
$asm='nasm -f win64';
$asm.=' -g' if $debug;
$afile='-o ';
} else {
$asm='ml64 /c /Cp /Cx';
$asm.=" /Zi" if $debug;
$afile='/Fo';
}
} elsif ($FLAVOR =~ /WIN64I/) {
$asm='ias';
$asm.=" -d debug" if $debug;