Commit Graph

25 Commits

Author SHA1 Message Date
Randy Eckenrode f71ca2825c Fix test failures on Darwin on a case-sensitive fs
This issue was encounetered while working on a contribution to nixpkgs.
Nix allows the store to be installed on a separate, case-sensitive APFS
volume. When the store is on a case-sensitive volume, these tests fail
because they try to use `foundation` instead of `Foundation`.
2023-05-28 01:51:59 -04:00
Eli Schwartz 59d4f771d2
editorconfig: add setting to trim trailing whitespace
and clean up all outstanding issues

Skip 'test cases/common/141 special characters/meson.build' since it
intentionally uses trailing newlines.
2021-08-15 09:36:18 -04:00
Jussi Pakkanen c54dd63547 Make objective C use C standard version. Closes #5495. 2021-05-11 22:47:17 +03:00
Michael Hirsch, Ph.D d1980beb6b ci/test: unused args for objc, objc++ 2019-12-04 10:59:40 +02:00
Michael Hirsch, Ph.D 83b4e981c4 Use strict function prototypes 2019-11-18 22:21:36 +02:00
Jussi Pakkanen 7ac03f6264 Non-required appleframework deps should not be an error. Closes #5295. 2019-05-02 21:37:57 +03:00
Jussi Pakkanen 17bfbb99e5 Condense test dirs. 2018-07-31 19:22:24 +03:00
Dylan Baker 0ec7dd5ac5 tests: Split objc and objc++ tests
This allows platforms that can compile one or the other (but not both)
to run the tests that they can.
2018-01-06 13:49:34 -08:00
Dylan Baker 97d2a9d84c tests: skip objc nsstring test if gnustep is not installed 2018-01-06 13:49:34 -08:00
Nirbheek Chauhan 6f3e2a0a07 compilers: prefer C++ over objc in clink_langs
Otherwise we will try to use the objc compiler when linking projects
with both objc and C++.

Technically we should use the objc++ linker when doing this, but on
most (all?) systems the objc++ linker is `c++`, which is the same
as the C++ linker.

Closes https://github.com/mesonbuild/meson/issues/2468
2017-12-30 17:59:34 +02:00
Paulo Antonio Alvarez 50c81d267b objc++: Add support for objcpp_args keyword
This allows the user to pass additional flags for the objective-c++
compiler.
2017-05-22 21:21:15 -03:00
Paulo Antonio Alvarez 18d2e7b91c objc: Add support for objc_args keyword
This allows the user to pass additional flags for the objective-c
compiler.
2017-05-22 21:16:10 -03:00
Jon Turney 45a3bd8661 Skip objc/nsstring test on Cygwin
GNUstep isn't packaged for Cygwin
2017-04-06 22:48:02 +01:00
Nirbheek Chauhan 7a671e21b9 objc tests: Disable nsstring test on Clang + Linux
The GNUstep runtime shipped in Linux distros is GCC-specific and won't
work with clang. You have to build it separately and set the paths
yourself.

In file included from /root/b 05ywf6dg/stringprog@exe/stringprog-unity.m:1:
In file included from /root/b 05ywf6dg/../test cases/objc/2 nsstring/stringprog.m:1:
In file included from /usr/include/GNUstep/Foundation/NSString.h:89:
In file included from /usr/include/GNUstep/Foundation/NSObject.h:30:
In file included from /usr/include/GNUstep/Foundation/NSObjCRuntime.h:213:
/usr/include/GNUstep/GNUstepBase/GSObjCRuntime.h:58:11: fatal error: 'objc/objc.h' file not found
 #include <objc/objc.h>
          ^

On my system, I get the same error and the objc.h path is:

/usr/lib/gcc/x86_64-redhat-linux/6.3.1/include/objc/objc.h
2017-02-21 01:36:08 +05:30
Jussi Pakkanen 78739afd9c Use system() instead of name() which is a confusing term. 2015-08-16 23:32:39 +03:00
Jussi Pakkanen 463d08d545 Now host_machine, build_machine and target_machine are properly separated and return correct values. 2015-07-27 00:55:27 +03:00
Jussi Pakkanen 2c65b1f0c3 Renamed deps -> dependencies. 2014-06-22 17:26:36 +03:00
Jussi Pakkanen 89aa4e2233 C++ is now called cpp rather than cxx. 2013-06-02 22:31:10 +03:00
Jussi Pakkanen 11e81618d2 Renamed find_dep to dependency. 2013-06-02 14:06:43 +03:00
Jussi Pakkanen d4284aae89 Renamed add_test to test. 2013-06-02 13:18:15 +03:00
Jussi Pakkanen 852b774e2e The default value of required is true for dependencies. 2013-06-01 14:06:36 +03:00
Jussi Pakkanen 2c3d35802f Can use Apple frameworks with Objective C. 2013-04-10 22:41:46 +03:00
Jussi Pakkanen e05af1bf9e Added ObjC++ support. 2013-04-06 22:03:16 +03:00
Jussi Pakkanen 9701d4d555 Added support for GNUStep. 2013-04-06 21:48:51 +03:00
Jussi Pakkanen 5174c255b2 Basic support for Objective C. 2013-04-06 20:55:37 +03:00