diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-01-20 03:00:37 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-01-21 20:17:21 +0530 |
commit | 7b3957afbd79ee812f5b83540210c566639a4c91 (patch) | |
tree | e5d7b91736ecc8a2fd8845ae8eb3b7a3aa8d2dde | |
parent | 86a0c39f4b66ac9c1378001ce62d8b0bcc72d293 (diff) | |
download | meson-7b3957afbd79ee812f5b83540210c566639a4c91.zip meson-7b3957afbd79ee812f5b83540210c566639a4c91.tar.gz meson-7b3957afbd79ee812f5b83540210c566639a4c91.tar.bz2 |
Fix targets with generated LLVM IR and Assembly sources
These two are also C-like sources, so don't ignore them in
backends/ninjabackend.py:generate_target() when we call
is_source() on the list of generated sources for that target.
Closes #1318
-rw-r--r-- | mesonbuild/compilers.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py index 649e6c1..4f659ca 100644 --- a/mesonbuild/compilers.py +++ b/mesonbuild/compilers.py @@ -53,9 +53,10 @@ clike_langs = ('objcpp', 'objc', 'd', 'cpp', 'c', 'fortran',) clike_suffixes = () for l in clike_langs: clike_suffixes += lang_suffixes[l] -clike_suffixes += ('h',) +clike_suffixes += ('h', 'll', 's') + +# All these are only for C-like languages; see `clike_langs` above. -# These are used in backend/backends.py:generated_target() def is_header(fname): if hasattr(fname, 'fname'): fname = fname.fname @@ -65,7 +66,7 @@ def is_header(fname): def is_source(fname): if hasattr(fname, 'fname'): fname = fname.fname - suffix = fname.split('.')[-1] + suffix = fname.split('.')[-1].lower() return suffix in clike_suffixes def is_assembly(fname): |