From 9838611a8bef54c71e85751d467327506016c900 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 23 Dec 2020 15:52:12 -0800 Subject: [PATCH] Fixed compiler crash building for iOS with clang 11.0.3 --- src/video/SDL_stretch.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/video/SDL_stretch.c b/src/video/SDL_stretch.c index f029ba185..44c61b035 100644 --- a/src/video/SDL_stretch.c +++ b/src/video/SDL_stretch.c @@ -442,16 +442,15 @@ SDL_SoftStretchLowerNearest(SDL_Surface *src, const SDL_Rect *srcrect, - -static void #if defined(__clang__) // Remove inlining of this function -// Crash with clang 9.0.8 / android-ndk-r21d -// Ok with clang 11.0.5 / android-ndk-22 -# if __clang_major__ == 9 +// Compiler crash with clang 9.0.8 / android-ndk-r21d +// Compiler crash with clang 11.0.3 / Xcode +// OK with clang 11.0.5 / android-ndk-22 +// OK with clang 12.0.0 / Xcode __attribute__((noinline)) -# endif #endif +static void get_scaler_datas(int src_nb, int dst_nb, int *fp_start, int *fp_step, int *left_pad, int *right_pad) {