compilers/clike: ICL needs msvc workarounds in has_function
This commit is contained in:
parent
fa54f05f09
commit
f5ea341319
|
@ -776,7 +776,7 @@ class CLikeCompiler:
|
||||||
return True, cached
|
return True, cached
|
||||||
|
|
||||||
# MSVC does not have compiler __builtin_-s.
|
# MSVC does not have compiler __builtin_-s.
|
||||||
if self.get_id() == 'msvc':
|
if self.get_id() in {'msvc', 'intel-cl'}:
|
||||||
return False, False
|
return False, False
|
||||||
|
|
||||||
# Detect function as a built-in
|
# Detect function as a built-in
|
||||||
|
|
|
@ -120,7 +120,7 @@ def get_relative_files_list_from_dir(fromdir):
|
||||||
|
|
||||||
def platform_fix_name(fname, compiler, env):
|
def platform_fix_name(fname, compiler, env):
|
||||||
# canonicalize compiler
|
# canonicalize compiler
|
||||||
if compiler == 'clang-cl':
|
if compiler in {'clang-cl', 'intel-cl'}:
|
||||||
canonical_compiler = 'msvc'
|
canonical_compiler = 'msvc'
|
||||||
else:
|
else:
|
||||||
canonical_compiler = compiler
|
canonical_compiler = compiler
|
||||||
|
|
Loading…
Reference in New Issue