PGI: windows workaround not-msvc-like enough function

This commit is contained in:
Michael Hirsch, Ph.D 2019-09-01 16:02:28 -04:00
parent 3447767cac
commit 25653cac07
No known key found for this signature in database
GPG Key ID: 6D23CDADAB0294F9
1 changed files with 5 additions and 1 deletions

View File

@ -29,7 +29,8 @@ from .. import build
from .. import mlog
from .. import dependencies
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 ..mesonlib import (
File, LibType, MachineChoice, MesonException, OrderedSet, PerMachine, ProgressBar
@ -232,6 +233,9 @@ class NinjaBackend(backends.Backend):
# IFort on windows is MSVC like, but doesn't have /showincludes
if isinstance(compiler, FortranCompiler):
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):
break
else: