From: Andy W. <abw...@gm...> - 2014-01-06 22:01:52
|
Long patch description: NASM and yasm are in many respects compatible but yasm uses --v instead of -v for version. As often --v is used for version I end up using --v initially in NASM. This patch allows me to compile Mozilla apps which use yasm with NASM by merely renaming NASM to yasm so that the build environment does not have to be updated (Mozilla would not accept changes to allow use of NASM). The patch is trivial and as such should not affect any other use case that I can see. --- a/nasm.c +++ b/nasm.c @@ -653,6 +653,10 @@ static bool process_arg(char *p, char *q) return advance; } + if (p[1] == '-' && p[2] == 'v') { + p[1] = 'v'; + } + switch (p[1]) { case 's': error_file = stdout; @@ -777,6 +781,7 @@ static bool process_arg(char *p, char *q) "[-l listfile]\n" " [options...] [--] filename\n" " or nasm -v for version info\n\n" + " or nasm --v for version info\n\n" " -t assemble in SciTech TASM compatible mode\n" " -g generate debug information in selected format\n"); printf Signed-off-by: Andy Willis <abw...@gm...> |