diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-12-27 00:25:45 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-12-27 00:25:45 +0200 |
| commit | 3500ddb8bb311bd99d2a76c6cd7bfe0788d5ad23 (patch) | |
| tree | d1f8c846835244c8758bfb9fa7b8de2ea14559d4 /test cases | |
| parent | e5b59ac9e9d641fef5b12c39c69ed1320682e475 (diff) | |
| download | meson-3500ddb8bb311bd99d2a76c6cd7bfe0788d5ad23.tar.gz | |
Skip extraction test during Unity build because the object file is not generated.
Diffstat (limited to 'test cases')
| -rw-r--r-- | test cases/common/25 object extraction/meson.build | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test cases/common/25 object extraction/meson.build b/test cases/common/25 object extraction/meson.build index a039a8c35..f93660995 100644 --- a/test cases/common/25 object extraction/meson.build +++ b/test cases/common/25 object extraction/meson.build @@ -1,7 +1,11 @@ project('object extraction', 'c') -lib = shared_library('somelib', 'lib.c') -obj = lib.extract_objects('lib.c') +if meson.is_unity() + message('Skipping extraction test because this is a Unity build.') +else + lib = shared_library('somelib', 'lib.c') + obj = lib.extract_objects('lib.c') -e = executable('main', 'main.c', objects : obj) -test('extraction test', e) + e = executable('main', 'main.c', objects : obj) + test('extraction test', e) +endif |
