build: don't check for Swift when disabled

This commit is contained in:
der richter 2019-04-13 15:11:22 +02:00 committed by Jan Ekström
parent 65b1c2d065
commit f7f5bd80bb
1 changed files with 2 additions and 1 deletions

View File

@ -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)