From f7f5bd80bb92d3c91eb3650b49f1a556a5f6c7f4 Mon Sep 17 00:00:00 2001 From: der richter Date: Sat, 13 Apr 2019 15:11:22 +0200 Subject: [PATCH] build: don't check for Swift when disabled --- waftools/detections/compiler_swift.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/waftools/detections/compiler_swift.py b/waftools/detections/compiler_swift.py index 59f1385ba9..7e4e3db41e 100644 --- a/waftools/detections/compiler_swift.py +++ b/waftools/detections/compiler_swift.py @@ -74,4 +74,5 @@ def __find_swift_compiler(ctx): def configure(ctx): if ctx.env.DEST_OS == "darwin": __find_macos_sdk(ctx) - __find_swift_compiler(ctx) + if ctx.options.enable_swift is not False: + __find_swift_compiler(ctx)