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.
pull/562/head
Nirbheek Chauhan 9 years ago
parent 7aa24c7d0a
commit eb181485d0
  1. 2
      mesonbuild/backend/ninjabackend.py

@ -1397,7 +1397,7 @@ rule FORTRAN_DEP_HACK
def get_cross_stdlib_args(self, target, compiler): def get_cross_stdlib_args(self, target, compiler):
if not target.is_cross: if not target.is_cross:
return [] return []
if self.environment.cross_info.has_stdlib(compiler.language): if not self.environment.cross_info.has_stdlib(compiler.language):
return [] return []
return compiler.get_no_stdinc_args() return compiler.get_no_stdinc_args()

Loading…
Cancel
Save