|
|
@ -28,7 +28,8 @@ from .. import build |
|
|
|
from .. import mlog |
|
|
|
from .. import mlog |
|
|
|
from .. import dependencies |
|
|
|
from .. import dependencies |
|
|
|
from .. import compilers |
|
|
|
from .. import compilers |
|
|
|
from ..compilers import Compiler, CompilerArgs, CCompiler, VisualStudioLikeCompiler, FortranCompiler |
|
|
|
from ..compilers import (Compiler, CompilerArgs, CCompiler, FortranCompiler, |
|
|
|
|
|
|
|
PGICCompiler, VisualStudioLikeCompiler) |
|
|
|
from ..linkers import ArLinker |
|
|
|
from ..linkers import ArLinker |
|
|
|
from ..mesonlib import ( |
|
|
|
from ..mesonlib import ( |
|
|
|
File, LibType, MachineChoice, MesonException, OrderedSet, PerMachine, ProgressBar, quote_arg |
|
|
|
File, LibType, MachineChoice, MesonException, OrderedSet, PerMachine, ProgressBar, quote_arg |
|
|
@ -234,6 +235,9 @@ class NinjaBackend(backends.Backend): |
|
|
|
# IFort on windows is MSVC like, but doesn't have /showincludes |
|
|
|
# IFort on windows is MSVC like, but doesn't have /showincludes |
|
|
|
if isinstance(compiler, FortranCompiler): |
|
|
|
if isinstance(compiler, FortranCompiler): |
|
|
|
continue |
|
|
|
continue |
|
|
|
|
|
|
|
if isinstance(compiler, PGICCompiler) and mesonlib.is_windows(): |
|
|
|
|
|
|
|
# for the purpose of this function, PGI doesn't act enough like MSVC |
|
|
|
|
|
|
|
return open(tempfilename, 'a', encoding='utf-8') |
|
|
|
if isinstance(compiler, VisualStudioLikeCompiler): |
|
|
|
if isinstance(compiler, VisualStudioLikeCompiler): |
|
|
|
break |
|
|
|
break |
|
|
|
else: |
|
|
|
else: |
|
|
|