[Commits] SDL: Fixed bug 4075 - configury adds Metal.framework to linkage ...

libsdl.org revision control commits-owner at libsdl.org
Sun Feb 11 17:25:55 PST 2018


details:   https://hg.libsdl.org/SDL/rev/2eff89e82b60
changeset: 11864:2eff89e82b60
user:      Sam Lantinga <slouken at libsdl.org>
date:      Sun Feb 11 17:25:51 2018 -0800
description:
Fixed bug 4075 - configury adds Metal.framework to linkage even if it is not available

Ozkan Sezer

Configury adds Metal.framework to linkage even if it is not available.
My solution is setting enable_render_metal to no when Metal.framework
is not found

diffstat:

 configure    |  2 ++
 configure.in |  2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diffs (24 lines):

diff -r b3944d2ef793 -r 2eff89e82b60 configure
--- a/configure	Sun Feb 11 15:29:36 2018 -0800
+++ b/configure	Sun Feb 11 17:25:51 2018 -0800
@@ -21314,6 +21314,8 @@
 
             SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
             SUMMARY_video="${SUMMARY_video} metal"
+        else
+            enable_render_metal=no
         fi
     fi
 }
diff -r b3944d2ef793 -r 2eff89e82b60 configure.in
--- a/configure.in	Sun Feb 11 15:29:36 2018 -0800
+++ b/configure.in	Sun Feb 11 17:25:51 2018 -0800
@@ -2093,6 +2093,8 @@
             AC_DEFINE(SDL_VIDEO_RENDER_METAL, 1, [ ])
             SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
             SUMMARY_video="${SUMMARY_video} metal"
+        else
+            enable_render_metal=no
         fi
     fi
 }


More information about the commits mailing list