mirror of
https://github.com/textmate/textmate.git
synced 2026-01-20 20:27:59 -05:00
Let gen_build support TM_NINJA
This is for when building from TextMate and PATH has not been setup to contain the directory containing ninja.
This commit is contained in:
@@ -579,7 +579,7 @@ def all_targets(buildfile, builddir)
|
||||
return res unless File.exists? buildfile
|
||||
|
||||
Dir.chdir(File.dirname(buildfile)) do
|
||||
targets = %x{ ninja -f #{[ buildfile ].shelljoin } -t targets all }
|
||||
targets = %x{ ${TM_NINJA:-ninja} -f #{[ buildfile ].shelljoin } -t targets all }
|
||||
targets.each do |line|
|
||||
if line =~ /.*(?=:(?! phony))/
|
||||
path = $&
|
||||
|
||||
Reference in New Issue
Block a user