[compiler-rt] r248629 - [CMake] [darwin] [builtins] Should be reading the OS variable that is passed in, not the bleed through from the function above. NFC.

Chris Bieneman via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 25 15:31:17 PDT 2015


Author: cbieneman
Date: Fri Sep 25 17:31:17 2015
New Revision: 248629

URL: http://llvm.org/viewvc/llvm-project?rev=248629&view=rev
Log:
[CMake] [darwin] [builtins] Should be reading the OS variable that is passed in, not the bleed through from the function above. NFC.

Modified:
    compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake

Modified: compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake?rev=248629&r1=248628&r2=248629&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake (original)
+++ compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake Fri Sep 25 17:31:17 2015
@@ -175,8 +175,8 @@ macro(darwin_add_builtin_library name su
     add_dependencies(${LIB_PARENT_TARGET} ${libname})
   endif()
 
-  list(APPEND ${os}_${suffix}_libs ${libname})
-  list(APPEND ${os}_${suffix}_lipo_flags -arch ${arch} $<TARGET_FILE:${libname}>)
+  list(APPEND ${LIB_OS}_${suffix}_libs ${libname})
+  list(APPEND ${LIB_OS}_${suffix}_lipo_flags -arch ${arch} $<TARGET_FILE:${libname}>)
 endmacro()
 
 function(darwin_lipo_libs name)




More information about the llvm-commits mailing list