+elif [ $compiler = CL ]; then
+ # Visual Studio
+ # _M_IX86_FP is only defined on x86
+ [ $ARCH = X86 ] && cpp_check '' '' '_M_IX86_FP >= 1' && define __SSE__
+ [ $ARCH = X86_64 ] && define __SSE__
+ # As long as the cli application can't link against the dll, the dll can not be pgo'd.
+ # pgds are link flag specific and the -dll flag for creating the dll makes it unshareable with the cli
+ PROF_GEN_CC="-GL"
+ PROF_GEN_LD="-LTCG:PGINSTRUMENT"
+ PROF_USE_CC="-GL"
+ PROF_USE_LD="-LTCG:PGOPTIMIZE"
+else
+ PROF_GEN_CC="-fprofile-generate"
+ PROF_GEN_LD="-fprofile-generate"
+ PROF_USE_CC="-fprofile-use"
+ PROF_USE_LD="-fprofile-use"