summaryrefslogtreecommitdiffstats
path: root/platform/ios
diff options
context:
space:
mode:
authorYevhen Babiichuk (DustDFG) <dfgdust@gmail.com>2024-09-28 08:28:33 +0300
committerYevhen Babiichuk (DustDFG) <dfgdust@gmail.com>2024-09-28 08:28:33 +0300
commit1abcfdda851610d9f72985cc0b8ce4657f523cef (patch)
tree3d40266c93cea980ccfadd728615db96afd5f435 /platform/ios
parent76a135926aef1f02f27e4e09093787f2c670956d (diff)
downloadredot-engine-1abcfdda851610d9f72985cc0b8ce4657f523cef.tar.gz
Replace comments with printed warning for Metal on x86_64
Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com>
Diffstat (limited to 'platform/ios')
-rw-r--r--platform/ios/detect.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/ios/detect.py b/platform/ios/detect.py
index 989a7f21f3..20a3a996bc 100644
--- a/platform/ios/detect.py
+++ b/platform/ios/detect.py
@@ -2,7 +2,7 @@ import os
import sys
from typing import TYPE_CHECKING
-from methods import detect_darwin_sdk_path, print_error
+from methods import detect_darwin_sdk_path, print_error, print_warning
if TYPE_CHECKING:
from SCons.Script.SConscript import SConsEnvironment
@@ -156,7 +156,7 @@ def configure(env: "SConsEnvironment"):
env.Append(CPPDEFINES=["IOS_ENABLED", "UNIX_ENABLED", "COREAUDIO_ENABLED"])
if env["metal"] and env["arch"] != "arm64":
- # Only supported on arm64, so skip it for x86_64 builds.
+ print_warning("Target architecture '{}' does not support the Metal rendering driver".format(env["arch"]))
env["metal"] = False
if env["metal"]: