25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.5 KiB

  1. diff -rupN --exclude=.DS_Store cfe-3.5.0.src/CMakeLists.txt cfe-3.5.0.src.cotire/CMakeLists.txt
  2. --- cfe-3.5.0.src/CMakeLists.txt 2014-07-16 18:48:33.000000000 +0200
  3. +++ cfe-3.5.0.src.cotire/CMakeLists.txt 2014-12-21 19:58:36.000000000 +0100
  4. @@ -94,6 +94,8 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURR
  5. include(AddLLVM)
  6. include(TableGen)
  7. include(HandleLLVMOptions)
  8. + include(cotire)
  9. + set_property(DIRECTORY PROPERTY COTIRE_UNITY_LINK_LIBRARIES_INIT "COPY_UNITY")
  10. set(PACKAGE_VERSION "${LLVM_PACKAGE_VERSION}")
  11. @@ -343,6 +345,12 @@ macro(add_clang_library name)
  12. endif()
  13. set_target_properties(${name} PROPERTIES FOLDER "Clang libraries")
  14. + if (COMMAND cotire)
  15. + if (NOT "${name}" MATCHES "libclang")
  16. + set_target_properties(${name} PROPERTIES COTIRE_UNITY_SOURCE_POST_UNDEFS "DEBUG_TYPE")
  17. + cotire(${name})
  18. + endif()
  19. + endif()
  20. endmacro(add_clang_library)
  21. macro(add_clang_executable name)
  22. diff -rupN --exclude=.DS_Store cfe-3.5.0.src/tools/libclang/CMakeLists.txt cfe-3.5.0.src.cotire/tools/libclang/CMakeLists.txt
  23. --- cfe-3.5.0.src/tools/libclang/CMakeLists.txt 2014-07-15 00:17:16.000000000 +0200
  24. +++ cfe-3.5.0.src.cotire/tools/libclang/CMakeLists.txt 2014-12-21 19:58:36.000000000 +0100
  25. @@ -114,3 +114,10 @@ if(ENABLE_SHARED)
  26. LINK_FLAGS ${LIBCLANG_LINK_FLAGS})
  27. endif()
  28. endif()
  29. +
  30. +if (COMMAND cotire)
  31. + cotire(libclang)
  32. + if (TARGET ${LIBCLANG_STATIC_TARGET_NAME})
  33. + cotire(${LIBCLANG_STATIC_TARGET_NAME})
  34. + endif()
  35. +endif()