From eb181485d079991c7e69d229a49dd64422eb3907 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 26 May 2016 06:20:35 +0530 Subject: [PATCH] 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. --- mesonbuild/backend/ninjabackend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index 4b85565a3..d4c2e923a 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()