Update buildsys

FossilOrigin-Name: 49376442c6fce2701652c35daae08f6b3db57ac6dedeffd8ad9d5f2f71352b2a
This commit is contained in:
Jonathan Schleifer 2024-07-15 20:52:29 +00:00
parent 4252cbf3f2
commit cd503a3d90
3 changed files with 533 additions and 281 deletions

View file

@ -74,26 +74,27 @@ AS_IF([test x"$GOBJC" = x"yes"], [
old_OBJCFLAGS="$OBJCFLAGS"
OBJCFLAGS="$OBJCFLAGS -Wcast-align"
AC_MSG_CHECKING(whether -Wcast-align is buggy)
AC_TRY_COMPILE([
#ifdef __has_attribute
# if __has_attribute(objc_root_class)
__attribute__((__objc_root_class__))
# endif
#endif
@interface Foo
{
struct objc_class *_isa;
}
@end
@implementation Foo
- (void)foo
{
struct objc_class *c = _isa;
(void)c;
}
@end
], [
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([
#ifdef __has_attribute
# if __has_attribute(objc_root_class)
__attribute__((__objc_root_class__))
# endif
#endif
@interface Foo
{
struct objc_class *_isa;
}
@end
], [
@implementation Foo
- (void)foo
{
struct objc_class *c = _isa;
(void)c;
}
@end
])
], [
AC_MSG_RESULT(no)
], [