Fix latent bug in try_compile macro and use CMAKE_EXE_LINKER_FLAGS
when testing for supported architectures, as suggested by Andy Gibbs.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@216083 91177308-0d34-0410-b5e6-96231b3b80d8