Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

36 rader
1.3 KiB

  1. diff -rupN clang-3.1.src/CMakeLists.txt clang-3.1.src.cotire/CMakeLists.txt
  2. --- clang-3.1.src/CMakeLists.txt 2012-04-16 06:16:43.000000000 +0200
  3. +++ clang-3.1.src.cotire/CMakeLists.txt 2012-05-23 19:34:06.000000000 +0200
  4. @@ -36,6 +36,7 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURR
  5. include(TableGen)
  6. include("${CLANG_PATH_TO_LLVM_BUILD}/share/llvm/cmake/LLVMConfig.cmake")
  7. include(HandleLLVMOptions)
  8. + include(cotire)
  9. set(PACKAGE_VERSION "${LLVM_PACKAGE_VERSION}")
  10. @@ -211,6 +212,11 @@ macro(add_clang_library name)
  11. ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}
  12. RUNTIME DESTINATION bin)
  13. set_target_properties(${name} PROPERTIES FOLDER "Clang libraries")
  14. + if (COMMAND cotire)
  15. + if (NOT "${name}" MATCHES "libclang")
  16. + cotire(${name})
  17. + endif()
  18. + endif()
  19. endmacro(add_clang_library)
  20. macro(add_clang_executable name)
  21. diff -rupN clang-3.1.src/tools/libclang/CMakeLists.txt clang-3.1.src.cotire/tools/libclang/CMakeLists.txt
  22. --- clang-3.1.src/tools/libclang/CMakeLists.txt 2012-04-13 19:26:32.000000000 +0200
  23. +++ clang-3.1.src.cotire/tools/libclang/CMakeLists.txt 2012-05-23 19:34:06.000000000 +0200
  24. @@ -88,3 +88,8 @@ if( NOT BUILD_SHARED_LIBS AND NOT WIN32
  25. PROPERTIES
  26. OUTPUT_NAME "libclang")
  27. endif()
  28. +
  29. +if (COMMAND cotire)
  30. + cotire(libclang)
  31. + cotire(${LIBCLANG_STATIC_TARGET_NAME})
  32. +endif()