aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-07-11 23:50:12 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2020-07-13 15:28:51 +0000
commit848fcb6a537d58cf5d49ac9d3d10b4444bb420ad (patch)
tree761e3e907837fd8e3f6dec47779d6bc27886e80b
parenta672ffa9f89bfe4be712da10cbec9e25136f48ca (diff)
downloadmeson-848fcb6a537d58cf5d49ac9d3d10b4444bb420ad.zip
meson-848fcb6a537d58cf5d49ac9d3d10b4444bb420ad.tar.gz
meson-848fcb6a537d58cf5d49ac9d3d10b4444bb420ad.tar.bz2
Enable target override_options for llvm-ir
This was missed somehow when the feature was added a few years ago.
-rw-r--r--mesonbuild/backend/ninjabackend.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index 62bda1a..065da00 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -2155,11 +2155,11 @@ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47485'''))
return linker.get_link_debugfile_args(outname)
def generate_llvm_ir_compile(self, target, src):
+ base_proxy = self.get_base_options_for_target(target)
compiler = get_compiler_for_source(target.compilers.values(), src)
commands = compiler.compiler_args()
# Compiler args for compiling this target
- commands += compilers.get_base_compile_args(self.environment.coredata.base_options,
- compiler)
+ commands += compilers.get_base_compile_args(base_proxy, compiler)
if isinstance(src, File):
if src.is_built:
src_filename = os.path.join(src.subdir, src.fname)