The subtarget in MipsTargetLowering isn't going to change and
[oota-llvm.git] / tools / CMakeLists.txt
index 13b7f5af85a7da7afc49a4fca3194a88ac30b420..846ad1e25d62ed7198128bb565f00c801ae952e1 100644 (file)
@@ -49,7 +49,7 @@ add_llvm_tool_subdirectory(llvm-c-test)
 add_llvm_tool_subdirectory(obj2yaml)
 add_llvm_tool_subdirectory(yaml2obj)
 
-if( NOT CYGWIN )
+if(NOT CYGWIN AND LLVM_ENABLE_PIC)
   add_llvm_tool_subdirectory(lto)
   add_llvm_tool_subdirectory(llvm-lto)
 else()