compilers/clike: ICL needs msvc workarounds in has_function

This commit is contained in:
Dylan Baker 2019-05-03 13:55:01 -07:00
parent fa54f05f09
commit f5ea341319
2 changed files with 2 additions and 2 deletions

View File

@ -776,7 +776,7 @@ class CLikeCompiler:
return True, cached
# MSVC does not have compiler __builtin_-s.
if self.get_id() == 'msvc':
if self.get_id() in {'msvc', 'intel-cl'}:
return False, False
# Detect function as a built-in

View File

@ -120,7 +120,7 @@ def get_relative_files_list_from_dir(fromdir):
def platform_fix_name(fname, compiler, env):
# canonicalize compiler
if compiler == 'clang-cl':
if compiler in {'clang-cl', 'intel-cl'}:
canonical_compiler = 'msvc'
else:
canonical_compiler = compiler