1
0
mirror of https://github.com/elua/elua.git synced 2025-01-25 01:02:54 +08:00

Merge pull request #76 from tmeinlschmidt/fix_toolchain_osx

toolchain not found even it is existing - OSX
This commit is contained in:
Bogdan Marinescu 2016-02-22 12:38:11 +02:00
commit 3f90a2f42d
2 changed files with 2 additions and 2 deletions

View File

@ -233,7 +233,7 @@ else
local c = usable_chains[ i ]
local t = bd.get_toolchain_data( c )
local res = utils.check_command( t.compile .. " " .. t.version )
if res == 0 then chain = c break end
if res == 0 or res == true then chain = c break end
end
if chain then
comp.toolchain = chain

View File

@ -283,7 +283,7 @@ _target.build = function( self )
code = 0
end
end
if code ~= 0 then
if code ~= 0 and code ~= true then
print( utils.col_red( "[builder] Error building target" ) )
if self.builder.disp_mode ~= 'all' and type( cmd ) == "string" then
print( utils.col_red( "[builder] Last executed command was: " ) )