unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 96672bb2ddb34cf21a131990b10ae5ccb05db311 1260 bytes (raw)
name: gnu/packages/patches/clang-tools-extra-cmake.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
 
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 57bb970..6e5de7c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,3 +1,33 @@
+cmake_minimum_required(VERSION 3.4.3)
+
+project(Clang-Tools-Extra)
+
+find_package(LLVM REQUIRED HINTS "${LLVM_CMAKE_PATH}")
+list(APPEND CMAKE_MODULE_PATH ${LLVM_DIR})
+
+# This is the place where we put Clang's 'AddClang.cmake'.
+list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
+
+set(LLVM_TOOLS_BINARY_DIR ${TOOLS_BINARY_DIR} CACHE PATH "Path to llvm/bin")
+set(LLVM_LIBRARY_DIR ${LIBRARY_DIR} CACHE PATH "Path to llvm/lib")
+set(LLVM_MAIN_INCLUDE_DIR ${INCLUDE_DIR} CACHE PATH "Path to llvm/include")
+set(LLVM_BINARY_DIR ${LLVM_OBJ_ROOT} CACHE PATH "Path to LLVM build tree")
+set(LLVM_MAIN_SRC_DIR ${MAIN_SRC_DIR} CACHE PATH "Path to LLVM source tree")
+
+set(PACKAGE_VERSION "${LLVM_PACKAGE_VERSION}")
+
+include(AddClang)
+include(AddLLVM)
+include(TableGen)
+include(HandleLLVMOptions)
+include(VersionFromVCS)
+include(LLVMDistributionSupport)
+
+# Dummy targets to appease CMake.  These are normally found in the
+# Clang tree.
+add_custom_target(clang-resource-headers)
+add_custom_target(ClangSACheckers)
+
 include(CMakeDependentOption)
 
 add_subdirectory(clang-apply-replacements)

debug log:

solving 96672bb2dd ...
found 96672bb2dd in https://yhetil.org/guix-devel/87v9lalm1q.fsf@inria.fr/

applying [1/1] https://yhetil.org/guix-devel/87v9lalm1q.fsf@inria.fr/
diff --git a/gnu/packages/patches/clang-tools-extra-cmake.patch b/gnu/packages/patches/clang-tools-extra-cmake.patch
new file mode 100644
index 0000000000..96672bb2dd

1:43: trailing whitespace.
 
Checking patch gnu/packages/patches/clang-tools-extra-cmake.patch...
Applied patch gnu/packages/patches/clang-tools-extra-cmake.patch cleanly.
warning: 1 line adds whitespace errors.

index at:
100644 96672bb2ddb34cf21a131990b10ae5ccb05db311	gnu/packages/patches/clang-tools-extra-cmake.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).