OSDN Git Service

[UI][Qt] Remove unneeded Qt classes from GUI.
[csp-qt/common_source_project-fm7.git] / doc / cotire / Patches / clang-3.5.src.patch
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  
11    set(PACKAGE_VERSION "${LLVM_PACKAGE_VERSION}")
12  
13 @@ -343,6 +345,12 @@ macro(add_clang_library name)
14    endif()
15  
16    set_target_properties(${name} PROPERTIES FOLDER "Clang libraries")
17 +  if (COMMAND cotire)
18 +    if (NOT "${name}" MATCHES "libclang")
19 +      set_target_properties(${name} PROPERTIES COTIRE_UNITY_SOURCE_POST_UNDEFS "DEBUG_TYPE")
20 +      cotire(${name})
21 +    endif()
22 +  endif()
23  endmacro(add_clang_library)
24  
25  macro(add_clang_executable name)
26 diff -rupN --exclude=.DS_Store cfe-3.5.0.src/tools/libclang/CMakeLists.txt cfe-3.5.0.src.cotire/tools/libclang/CMakeLists.txt
27 --- cfe-3.5.0.src/tools/libclang/CMakeLists.txt 2014-07-15 00:17:16.000000000 +0200
28 +++ cfe-3.5.0.src.cotire/tools/libclang/CMakeLists.txt  2014-12-21 19:58:36.000000000 +0100
29 @@ -114,3 +114,10 @@ if(ENABLE_SHARED)
30                   LINK_FLAGS ${LIBCLANG_LINK_FLAGS})
31    endif()
32  endif()
33 +
34 +if (COMMAND cotire)
35 +  cotire(libclang)
36 +  if (TARGET ${LIBCLANG_STATIC_TARGET_NAME})
37 +    cotire(${LIBCLANG_STATIC_TARGET_NAME})
38 +  endif()
39 +endif()