summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/pl/VC-32.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/pl/VC-32.pl b/util/pl/VC-32.pl
index dfde1aa2b1..f335a0ac05 100644
--- a/util/pl/VC-32.pl
+++ b/util/pl/VC-32.pl
@@ -163,7 +163,10 @@ $lfile='/out:';
$shlib_ex_obj="";
$app_ex_obj="setargv.obj" if ($FLAVOR !~ /CE/);
if ($nasm) {
- $asm='nasmw -f win32';
+ my $ver=`nasm -v`;
+ my $vew=`nasmw -v`;
+ # pick newest version
+ $asm=($ver gt $vew?"nasm":"nasmw")." -f win32";
$afile='-o ';
} else {
$asm='ml /Cp /coff /c /Cx';