fix sh.which usage when executable does not exist
This commit is contained in:
parent
90a6da48f9
commit
241afb5d3c
1 changed files with 2 additions and 1 deletions
|
@ -144,9 +144,10 @@ class Arch(object):
|
||||||
for d in self.ctx.include_dirs]
|
for d in self.ctx.include_dirs]
|
||||||
|
|
||||||
env = {}
|
env = {}
|
||||||
ccache = sh.which('ccache').strip()
|
ccache = sh.which('ccache')
|
||||||
cc = sh.xcrun("-find", "-sdk", self.sdk, "clang").strip()
|
cc = sh.xcrun("-find", "-sdk", self.sdk, "clang").strip()
|
||||||
if ccache:
|
if ccache:
|
||||||
|
ccache = ccache.strip()
|
||||||
use_ccache = environ.get("USE_CCACHE", "1")
|
use_ccache = environ.get("USE_CCACHE", "1")
|
||||||
if use_ccache != '1':
|
if use_ccache != '1':
|
||||||
env["CC"] = cc
|
env["CC"] = cc
|
||||||
|
|
Loading…
Add table
Reference in a new issue