[CMake] Renaming test variable to be consistent
authorChris Bieneman <beanz@apple.com>
Mon, 15 Aug 2016 20:12:43 +0000 (20:12 +0000)
committerChris Bieneman <beanz@apple.com>
Mon, 15 Aug 2016 20:12:43 +0000 (20:12 +0000)
Based on post-commit review by compnerd.

llvm-svn: 278728

compiler-rt/cmake/builtin-config-ix.cmake
compiler-rt/lib/builtins/CMakeLists.txt

index 83466d8..da055b5 100644 (file)
@@ -15,7 +15,7 @@ builtin_check_c_compiler_flag(-mfloat-abi=soft      COMPILER_RT_HAS_FLOAT_ABI_SO
 builtin_check_c_compiler_flag(-mfloat-abi=hard      COMPILER_RT_HAS_FLOAT_ABI_HARD_FLAG)
 builtin_check_c_compiler_flag(-static               COMPILER_RT_HAS_STATIC_FLAG)
 
-builtin_check_c_compiler_source(COMPILER_RT_SUPPORTS_ATOMIC_KEYWORD
+builtin_check_c_compiler_source(COMPILER_RT_HAS_ATOMIC_KEYWORD
 "
 int foo(int x, int y) {
  _Atomic int result = x * y;
index fc973a7..9d2154b 100644 (file)
@@ -164,7 +164,7 @@ set(GENERIC_SOURCES
   umodsi3.c
   umodti3.c)
 
-if(COMPILER_RT_SUPPORTS_ATOMIC_KEYWORD)
+if(COMPILER_RT_HAS_ATOMIC_KEYWORD)
   set(GENERIC_SOURCES
     ${GENERIC_SOURCES}
     atomic.c)