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:
commit
3f90a2f42d
@ -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
|
||||
|
@ -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: " ) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user