diff options
| author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-12-09 12:49:56 +0530 |
|---|---|---|
| committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-12-13 09:20:34 +0530 |
| commit | 0fc4ad2a0bc8f60f0c9336a39cf71746d1dab9b9 (patch) | |
| tree | 1dd364d26cadc9fa5eb1a17ea405c0f40843dcfb /mesonbuild/backend/backends.py | |
| parent | 7b3d00fee4bc76e9b6492321572db7ddd6d7f674 (diff) | |
| download | meson-0fc4ad2a0bc8f60f0c9336a39cf71746d1dab9b9.tar.gz | |
Also use objects to populate target compilers
This avoids us having no compilers at all for targets that are composed
entirely of objects with no sources.
Now we will always have a compiler for a target even if it is composed
entirely of objects generated with custom targets unless it has
completely unknown sources.
Diffstat (limited to 'mesonbuild/backend/backends.py')
| -rw-r--r-- | mesonbuild/backend/backends.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index 49b600823..91c5b0fa5 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -178,6 +178,8 @@ class Backend(): o = os.path.join(proj_dir_to_build_root, self.build_to_src, target.get_subdir(), obj) obj_list.append(o) + elif isinstance(obj, mesonlib.File): + obj_list.append(obj.rel_to_builddir(self.build_to_src)) elif isinstance(obj, build.ExtractedObjects): obj_list += self.determine_ext_objs(obj, proj_dir_to_build_root) else: |
