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.
This commit is contained in:
Nirbheek Chauhan 2016-05-26 06:20:35 +05:30
parent 7aa24c7d0a
commit eb181485d0
1 changed files with 1 additions and 1 deletions

View File

@ -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()