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:
parent
7aa24c7d0a
commit
eb181485d0
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue