[Bug #20687] Exclude just built ruby as baseruby
On Windows, an executable file in the current directory has the priority to the PATH environment variable always.
This commit is contained in:
parent
6ab591f80a
commit
7845ab1bc9
@ -18,8 +18,11 @@ MFLAGS=-l
|
||||
!endif
|
||||
|
||||
!if "$(BASERUBY)" == ""
|
||||
! if [ruby $(tooldir)/missing-baseruby.bat 2> nul]
|
||||
! else if [for %I in (ruby.exe) do @echo BASERUBY = %~s$$PATH:I > baseruby.mk]
|
||||
# After `nmake`, just built `ruby.exe` exists in the build directory,
|
||||
# and is searched first prior to $PATH. Assume that no ruby
|
||||
# executable in $(tooldir).
|
||||
! if [cd $(tooldir) && ruby missing-baseruby.bat 2> nul]
|
||||
! else if [(cd $(tooldir) && for %I in (ruby.exe) do @echo BASERUBY = %~s$$PATH:I) > baseruby.mk]
|
||||
! else
|
||||
! include baseruby.mk
|
||||
! endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user