summaryrefslogtreecommitdiffstats
path: root/platform/macos/detect.py
diff options
context:
space:
mode:
Diffstat (limited to 'platform/macos/detect.py')
-rw-r--r--platform/macos/detect.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/platform/macos/detect.py b/platform/macos/detect.py
index a5ef29e34f..70cb00c6ff 100644
--- a/platform/macos/detect.py
+++ b/platform/macos/detect.py
@@ -1,10 +1,10 @@
import os
import sys
-from methods import print_error, detect_darwin_sdk_path, get_compiler_version, is_vanilla_clang
-from platform_methods import detect_arch, detect_mvk
-
from typing import TYPE_CHECKING
+from methods import detect_darwin_sdk_path, get_compiler_version, is_vanilla_clang, print_error
+from platform_methods import detect_arch, detect_mvk
+
if TYPE_CHECKING:
from SCons.Script.SConscript import SConsEnvironment
@@ -53,11 +53,11 @@ def get_doc_path():
def get_flags():
- return [
- ("arch", detect_arch()),
- ("use_volk", False),
- ("supported", ["mono"]),
- ]
+ return {
+ "arch": detect_arch(),
+ "use_volk": False,
+ "supported": ["mono"],
+ }
def configure(env: "SConsEnvironment"):
@@ -107,7 +107,7 @@ def configure(env: "SConsEnvironment"):
env.Append(CCFLAGS=["-fobjc-arc"])
- if not "osxcross" in env: # regular native build
+ if "osxcross" not in env: # regular native build
if env["macports_clang"] != "no":
mpprefix = os.environ.get("MACPORTS_PREFIX", "/opt/local")
mpclangver = env["macports_clang"]