aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-12-05 04:35:32 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2016-12-13 09:17:06 +0530
commit5240688f5c591fed013057f2ef437dde58f0b504 (patch)
treea5cd0677d3c54c29c7fa69d9f942181b4a3d149a /mesonbuild/build.py
parent09f65b7a3cb2bd3bb5b5fa42ffac45f8fb632132 (diff)
downloadmeson-5240688f5c591fed013057f2ef437dde58f0b504.zip
meson-5240688f5c591fed013057f2ef437dde58f0b504.tar.gz
meson-5240688f5c591fed013057f2ef437dde58f0b504.tar.bz2
compilers: Fix output ext while compile-only on MSVC
When doing a compile-only self.compile() check, cl.exe expects an output file of type *.obj, and passing it `output.exe` makes it write the compiled object to `output.exe.obj`. Detect when we're doing a compily-only check and change the suffix ourselves. This is fine most of the time, but fails when you need to inspect the compiled file manually. Also store stdout/stderr on the returned object.
Diffstat (limited to 'mesonbuild/build.py')
0 files changed, 0 insertions, 0 deletions