diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-11-23 21:35:52 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-12-11 14:54:30 +0530 |
commit | 04c1909a4dcc4f92c845eabab5515419f0881dc5 (patch) | |
tree | 8c2bdf0a54e644a1982bf1354895e51e67493e7f /mesonbuild/environment.py | |
parent | 38f6fee86defebc6ccbc68c21ff857f6111ed874 (diff) | |
download | meson-04c1909a4dcc4f92c845eabab5515419f0881dc5.zip meson-04c1909a4dcc4f92c845eabab5515419f0881dc5.tar.gz meson-04c1909a4dcc4f92c845eabab5515419f0881dc5.tar.bz2 |
compilers: Implement support for LLVM IR compilation
Also C++ compilers can build .S assembly files. This wasn't noticed
earlier because most people were also using C compilers in their C++
projects and we would fall back to using the C compiler for building the
assembly files. Now we have a test for this.
This was trivial to add; except that we needed a new LLVM IR rule
because the compiler emits warnings if you pass any special arguments to
it such as include arguments or dependency arguments.
Closes #1089
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r-- | mesonbuild/environment.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index e673d50..0e8364c 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -271,6 +271,9 @@ class Environment(): def is_source(self, fname): return is_source(fname) + def is_llvm_ir(self, fname): + return is_llvm_ir(fname) + def is_object(self, fname): return is_object(fname) |