diff --git a/historic/jam/src/build.jam b/historic/jam/src/build.jam index 0dd7fc9b7..b14074019 100644 --- a/historic/jam/src/build.jam +++ b/historic/jam/src/build.jam @@ -376,8 +376,14 @@ actions .yyacc .yyacc jamgram.y jamgramtab.h : jamgram.yy ; # How to build the grammar. -yacc ?= [ GLOB $(PATH) : yacc yacc.exe ] ; -yacc ?= [ GLOB $(PATH) : bison bison.exe ] ; +if $(NT) +{ + local SUFEXE = .exe ; +} + +SUFEXE ?= "" ; +yacc ?= [ GLOB $(PATH) : yacc$(SUFEXE) ] ; +yacc ?= [ GLOB $(PATH) : bison$(SUFEXE) ] ; yacc = $(yacc[1]) ; switch $(yacc:D=:S=) { diff --git a/jam_src/build.jam b/jam_src/build.jam index 0dd7fc9b7..b14074019 100644 --- a/jam_src/build.jam +++ b/jam_src/build.jam @@ -376,8 +376,14 @@ actions .yyacc .yyacc jamgram.y jamgramtab.h : jamgram.yy ; # How to build the grammar. -yacc ?= [ GLOB $(PATH) : yacc yacc.exe ] ; -yacc ?= [ GLOB $(PATH) : bison bison.exe ] ; +if $(NT) +{ + local SUFEXE = .exe ; +} + +SUFEXE ?= "" ; +yacc ?= [ GLOB $(PATH) : yacc$(SUFEXE) ] ; +yacc ?= [ GLOB $(PATH) : bison$(SUFEXE) ] ; yacc = $(yacc[1]) ; switch $(yacc:D=:S=) {