This enables MSVC build of complex number arithmetic compiler-rt builtins.
Related driver patch:
http://reviews.llvm.org/D17453
Consider Clang which is built under native Windows environment. Compiling the following code will result in "unresolved external symbol __divsc3 referenced in function main"
int main(){
float _Complex a, b, c; c = a / b; return 0;
}
Clang front-end generates calls to complex number arithmetic functions, which are nowhere to be found in Microsoft runtime libs. The idea of this patch is to enable MSVC build of compiler-rt builtins library with certain subset of ported-to-CL sources and link this lib in case if user has explicitly demanded so through "--rtlib" option. This will allow to compile code with usage of complex number arithmetic in general and spec2006/462.libquantum in particular.