From 83bb86888375c5bfb894ce4232b26b00959581ac Mon Sep 17 00:00:00 2001 From: yuncang123 <135211779+yuncang123@users.noreply.github.com> Date: Sun, 15 Sep 2024 02:03:01 +0800 Subject: [PATCH] fix possible clang compile error in AARCH Signed-off-by: yuncang123 <135211779+yuncang123@users.noreply.github.com> --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index e10b07c8b..9172f9867 100644 --- a/meson.build +++ b/meson.build @@ -503,7 +503,11 @@ int func (void) { } ''' -have_func_strerror_r_char_p = cc.compiles(code, name : 'strerror_r() returns char *') + if cc.get_id() == 'clang' + have_func_strerror_r_char_p = cc.compiles(code, args : '-Wno-error=unused-command-line-argument', name : 'strerror_r() returns char *') + else + have_func_strerror_r_char_p = cc.compiles(code, name : 'strerror_r() returns char *') + endif endif srcconf.set10('STRERROR_R_CHAR_P', have_func_strerror_r_char_p) -- 2.47.2