aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-04-16 18:27:19 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2021-04-18 19:19:29 +0300
commit4fc578a25f848369fe12479fc0b2b938f217cac0 (patch)
tree33c1960e27bf39503894178cb92f5043a3b72426
parentd9b9eecd5464a1bd2c95778aa029d9e984fe3b9f (diff)
downloadmeson-4fc578a25f848369fe12479fc0b2b938f217cac0.zip
meson-4fc578a25f848369fe12479fc0b2b938f217cac0.tar.gz
meson-4fc578a25f848369fe12479fc0b2b938f217cac0.tar.bz2
Xcode: skip object extraction test that can not be made to work.
-rw-r--r--test cases/common/103 extract same name/meson.build12
1 files changed, 12 insertions, 0 deletions
diff --git a/test cases/common/103 extract same name/meson.build b/test cases/common/103 extract same name/meson.build
index 0bfbb4d..e15561d 100644
--- a/test cases/common/103 extract same name/meson.build
+++ b/test cases/common/103 extract same name/meson.build
@@ -1,5 +1,17 @@
project('object extraction', 'c')
+if meson.backend() == 'xcode'
+ # Xcode gives object files unique names but only if they would clash. For example
+ # two files named lib.o instead get the following names:
+ #
+ # lib-4fbe522d8ba4cb1f1b89cc2df640a2336b92e1a5565f0a4c5a79b5b5e2969eb9.o
+ # lib-4fbe522d8ba4cb1f1b89cc2df640a2336deeff2bc2297affaadbe20f5cbfee56.o
+ #
+ # No-one has reverse engineered the naming scheme so we would access them.
+ # IF you feel up to the challenge, patches welcome.
+ error('MESON_SKIP_TEST, Xcode can not extract objs when they would have the same filename.')
+endif
+
lib = shared_library('somelib', ['lib.c', 'src/lib.c'])
# Also tests that the object list is flattened properly
obj = lib.extract_objects(['lib.c', ['src/lib.c']])