Update buildsys
FossilOrigin-Name: 49376442c6fce2701652c35daae08f6b3db57ac6dedeffd8ad9d5f2f71352b2a
This commit is contained in:
parent
4252cbf3f2
commit
cd503a3d90
3 changed files with 533 additions and 281 deletions
41
configure.ac
41
configure.ac
|
@ -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)
|
||||
], [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue