1. diff --git a/cmake/Modules/AddCompilerRT.cmake b/cmake/Modules/AddCompilerRT.cmake
  2. index 549df4d..0f70f24 100644
  3. --- a/cmake/Modules/AddCompilerRT.cmake
  4. +++ b/cmake/Modules/AddCompilerRT.cmake
  5. @@ -140,9 +140,9 @@ macro(add_compiler_rt_test test_suite test_name)
  6. separate_arguments(TEST_LINK_FLAGS)
  7. add_custom_target(${test_name}
  8. # MSVS CL doesn't allow a space between -Fe and the output file name.
  9. - COMMAND ${COMPILER_RT_TEST_COMPILER} ${TEST_OBJECTS}
  10. + COMMAND ${COMPILER_RT_TEST_COMPILER}
  11. ${COMPILER_RT_TEST_COMPILER_EXE}"${output_bin}"
  12. - ${TEST_LINK_FLAGS}
  13. + ${TEST_LINK_FLAGS} ${TEST_OBJECTS}
  14. DEPENDS ${TEST_DEPS})
  15. # Make the test suite depend on the binary.
  16. add_dependencies(${test_suite} ${test_name})