diff options
| author | Andres Freund <andres@anarazel.de> | 2023-12-01 16:27:02 -0800 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2023-12-03 14:04:46 +0200 |
| commit | 4ddaef813354f04b94f447d8881ece43db1c3108 (patch) | |
| tree | 96d3ac2c6d377e902e5bbeae42e2d0542b22ef11 /test cases/common | |
| parent | c1f0897248fabad78877f124b431fd65bc8ba434 (diff) | |
| download | meson-4ddaef813354f04b94f447d8881ece43db1c3108.tar.gz | |
macos: Fix test case for constructor_priority when using gcc
GCC does not support constructor_priority on macos. It's possibly not the only
platform for which that is the case, but...
Diffstat (limited to 'test cases/common')
| -rw-r--r-- | test cases/common/197 function attributes/meson.build | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test cases/common/197 function attributes/meson.build b/test cases/common/197 function attributes/meson.build index 8ef6b741d..530db9313 100644 --- a/test cases/common/197 function attributes/meson.build +++ b/test cases/common/197 function attributes/meson.build @@ -91,6 +91,11 @@ if host_machine.system() != 'darwin' attributes += 'alloc_size' endif +# gcc doesn't support constructor_priority on darwin +if c.get_id() == 'gcc' and host_machine.system() == 'darwin' + expected += {'constructor_priority': false} +endif + if ['gcc', 'intel'].contains(c.get_id()) # not supported by clang as of 5.0.0 (at least up to 6.0.1) attributes += 'artificial' |
