From: yuncang123 <135211779+yuncang123@users.noreply.github.com> Date: Sat, 14 Sep 2024 18:03:01 +0000 (+0800) Subject: fix possible clang compile error in AARCH X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83bb86888375c5bfb894ce4232b26b00959581ac;p=thirdparty%2Flxc.git fix possible clang compile error in AARCH Signed-off-by: yuncang123 <135211779+yuncang123@users.noreply.github.com> --- 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)