[CRT] Use alias names for rot functions when compiling with Clang-CL

Clang-CL does not support #pragma function like CL. The alternative to this approach is to disable all intrinsics for this single source file, but that is not trivial to do, as it can only be done by removing a compiler switch, which we have no CMake support for. Therefore this solution is simpler and as good.
This commit is contained in:
Timo Kreuzer 2019-02-03 23:36:49 +01:00
parent 0493e8e432
commit dc77e7d379
3 changed files with 34 additions and 2 deletions

View file

@ -441,6 +441,10 @@ if(ARCH STREQUAL "i386")
list(APPEND CRT_ASM_SOURCE
except/i386/cpp.s)
endif()
if(USE_CLANG_CL)
list(APPEND CRT_ASM_SOURCE
stdlib/clang-alias.s)
endif()
elseif(ARCH STREQUAL "amd64")
list(APPEND CRT_ASM_SOURCE
except/amd64/seh.s