]> granicus.if.org Git - clang/commitdiff
[CMake] Fixing LTO library path passed into bootstrap builds.
authorChris Bieneman <beanz@apple.com>
Fri, 9 Oct 2015 17:45:44 +0000 (17:45 +0000)
committerChris Bieneman <beanz@apple.com>
Fri, 9 Oct 2015 17:45:44 +0000 (17:45 +0000)
This just fixes a small error in constructing the path to the LTO library.

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

CMakeLists.txt

index 2efed061db212c53d26a5ea46d4d6d7e3d73a6ec..232517037287b020bcbd07410207ef858e19a744 100644 (file)
@@ -598,7 +598,7 @@ if (CLANG_ENABLE_BOOTSTRAP)
   # DARWIN_LTO_LIBRARY so that -flto will work using the just-built compiler
   if(APPLE)
     set(LTO_DEP LTO llvm-ar llvm-ranlib)
-    set(LTO_LIBRARY -DDARWIN_LTO_LIBRARY=${LLVM_RUNTIME_OUTPUT_INTDIR}/libLTO.dylib)
+    set(LTO_LIBRARY -DDARWIN_LTO_LIBRARY=${LLVM_SHLIB_OUTPUT_INTDIR}/libLTO.dylib)
     set(LTO_AR -DCMAKE_AR=${LLVM_RUNTIME_OUTPUT_INTDIR}/llvm-ar)
     set(LTO_RANLIB -DCMAKE_RANLIB=${LLVM_RUNTIME_OUTPUT_INTDIR}/llvm-ranlib)
   endif()