aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/ninjabackend.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-05-26 06:20:35 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2016-05-26 06:21:08 +0530
commiteb181485d079991c7e69d229a49dd64422eb3907 (patch)
treec5770a164bd0cc6db2c4d973a2711d0514be6db8 /mesonbuild/backend/ninjabackend.py
parent7aa24c7d0a68959e4d29c41d157ee30ff97153ad (diff)
downloadmeson-eb181485d079991c7e69d229a49dd64422eb3907.zip
meson-eb181485d079991c7e69d229a49dd64422eb3907.tar.gz
meson-eb181485d079991c7e69d229a49dd64422eb3907.tar.bz2
ninja: Fix cross-build when using the compiler's stdlib
Logic was reversed. We want to pass -nostdinc when there's no c_stdlib specified in the cross-info file.
Diffstat (limited to 'mesonbuild/backend/ninjabackend.py')
-rw-r--r--mesonbuild/backend/ninjabackend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index 4b85565..d4c2e92 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -1397,7 +1397,7 @@ rule FORTRAN_DEP_HACK
def get_cross_stdlib_args(self, target, compiler):
if not target.is_cross:
return []
- if self.environment.cross_info.has_stdlib(compiler.language):
+ if not self.environment.cross_info.has_stdlib(compiler.language):
return []
return compiler.get_no_stdinc_args()