summaryrefslogtreecommitdiffstats
path: root/waftools/checks/custom.py
diff options
context:
space:
mode:
Diffstat (limited to 'waftools/checks/custom.py')
-rw-r--r--waftools/checks/custom.py14
1 files changed, 1 insertions, 13 deletions
diff --git a/waftools/checks/custom.py b/waftools/checks/custom.py
index 3af9bdb921..14e59f3f49 100644
--- a/waftools/checks/custom.py
+++ b/waftools/checks/custom.py
@@ -92,18 +92,6 @@ def check_wl_protocols(ctx, dependency_identifier):
return ret
return fn(ctx, dependency_identifier)
-def _run(cmd):
- from waflib import Utils
- try:
- cmd = Utils.subprocess.Popen(cmd,
- stdout=Utils.subprocess.PIPE,
- stderr=Utils.subprocess.PIPE,
- shell=True)
- output = cmd.stdout.read().strip()
- return output
- except Exception:
- return ""
-
def check_cocoa(ctx, dependency_identifier):
fn = check_cc(
fragment = load_fragment('cocoa.m'),
@@ -117,7 +105,7 @@ def check_cocoa(ctx, dependency_identifier):
# linking warnings or errors
if res:
ctx.env.append_value('LINKFLAGS', [
- '-isysroot', '%s' % _run('xcrun --sdk macosx --show-sdk-path')
+ '-isysroot', ctx.env.MACOS_SDK
])
return res