From 938ad6ebc037ebb32b41619a31b15f8ade712867 Mon Sep 17 00:00:00 2001 From: Akemi Date: Fri, 16 Feb 2018 13:07:15 +0100 Subject: cocoa-cb: change border and borderless window styling the title bar is now within the window bounds instead of outside. same as QuickTime Player. it supports several standard styles, two dark and two light ones. additionally we have properly rounded corners now and the borderless window also has the proper window shadow. Also make the earliest supported macOS version 10.10. Fixes #4789, #3944 --- waftools/detections/compiler_swift.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'waftools/detections/compiler_swift.py') diff --git a/waftools/detections/compiler_swift.py b/waftools/detections/compiler_swift.py index 81c71415f7..2e24362ecf 100644 --- a/waftools/detections/compiler_swift.py +++ b/waftools/detections/compiler_swift.py @@ -8,8 +8,9 @@ def __run(cmd): return "" def __add_swift_flags(ctx): - ctx.env.SWIFT_FLAGS = ('-frontend -c -sdk %s -enable-objc-interop -emit-objc-header' - ' -emit-module -parse-as-library') % (ctx.env.MACOS_SDK) + ctx.env.SWIFT_FLAGS = ('-frontend -c -sdk %s -enable-objc-interop' + ' -emit-objc-header -parse-as-library' + ' -target x86_64-apple-macosx10.10') % (ctx.env.MACOS_SDK) swift_version = __run([ctx.env.SWIFT, '-version']).split(' ')[3].split('.')[:2] major, minor = [int(n) for n in swift_version] @@ -31,7 +32,6 @@ def __find_swift_library(ctx): 'Toolchains/XcodeDefault.xctoolchain/usr/lib/swift_static/macosx', 'usr/lib/swift_static/macosx' ] - dev_path = __run('xcode-select -p')[1:] dev_path = __run(['xcode-select', '-p'])[1:] ctx.start_msg('Checking for Swift Library') -- cgit v1.2.3