You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/cli.c
+25-7Lines changed: 25 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,6 @@ void print_help(void)
59
59
60
60
intmain(intargc, char*argv[])
61
61
{
62
-
63
62
boolsourceValid= false;
64
63
booldestinationValid= false;
65
64
boolstageValid= false;
@@ -344,7 +343,6 @@ int main(int argc, char *argv[])
344
343
345
344
if (!check_for_metal_tools())
346
345
{
347
-
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "xcrun not found! Is Xcode installed and activated?");
348
346
return1;
349
347
}
350
348
@@ -454,7 +452,6 @@ int main(int argc, char *argv[])
454
452
455
453
if (!check_for_metal_tools())
456
454
{
457
-
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "xcrun not found! Is Xcode installed and activated?");
458
455
return1;
459
456
}
460
457
@@ -550,17 +547,30 @@ int main(int argc, char *argv[])
550
547
551
548
boolcheck_for_metal_tools(void)
552
549
{
550
+
#if defined(SDL_PLATFORM_MACOS)
551
+
char*compilerName="xcrun";
552
+
char*cantFindMessage="Install Xcode or the Xcode Command Line Tools.";
553
+
#elif defined(SDL_PLATFORM_WIN32)
554
+
char*compilerName="metal";
555
+
char*cantFindMessage="Install Metal Developer Tools for Windows 5.0 beta 2 or newer (https://developer.apple.com/download/all/?q=metal%20developer%20tools%20for%20windows) and add \"C:\\Program Files\\Metal Developer Tools\\bin\" to your PATH.";
556
+
#else
557
+
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Compiling to METALLIB is not supported on this platform!");
558
+
return false;
559
+
#endif
560
+
553
561
// Check for the Metal Developer Tools...
554
-
// FIXME: All the process calls need their Windows equivalents!
0 commit comments