Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 1 | @echo off |
| 2 | rem Try to find the AMD64 assembler and call it with the supplied arguments. |
| 3 | |
| 4 | set MLEXE=Microsoft Platform SDK\Bin\Win64\x86\AMD64\ml64.EXE |
| 5 | |
| 6 | rem For the environment variables see also |
| 7 | rem http://msdn.microsoft.com/library/en-us/win64/win64/wow64_implementation_details.asp |
| 8 | |
| 9 | if exist "%ProgramFiles%\%MLEXE%" ( |
| 10 | set ML64="%ProgramFiles%\%MLEXE%" |
| 11 | ) else if exist "%ProgramW6432%\%MLEXE%" ( |
| 12 | set ML64="%ProgramW6432%\%MLEXE%" |
| 13 | ) else ( |
| 14 | set ML64=ml64.exe |
| 15 | ) |
| 16 | |
| 17 | %ML64% %* |