diff options
author | Naveen Saini <naveen.kumar.saini@intel.com> | 2021-08-20 09:45:23 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2021-08-24 10:41:24 +0800 |
commit | 109fe9679337315fe80c1f97491fe4059fdf05cb (patch) | |
tree | b6c5e3bdea0f2e70964a41dd727e18693ca0ea72 /dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm10-0004-Remove-repo-name-in-LLVM-IR.patch | |
parent | 3838f1d263aceef8f94c340593323b67391a26fa (diff) | |
download | meta-intel-109fe9679337315fe80c1f97491fe4059fdf05cb.tar.gz |
llvm/10.0.0: apply opencl-clang recommend patches
https://github.com/intel/opencl-clang/tree/ocl-open-100/patches
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm10-0004-Remove-repo-name-in-LLVM-IR.patch')
-rw-r--r-- | dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm10-0004-Remove-repo-name-in-LLVM-IR.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm10-0004-Remove-repo-name-in-LLVM-IR.patch b/dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm10-0004-Remove-repo-name-in-LLVM-IR.patch new file mode 100644 index 00000000..f8dec996 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm10-0004-Remove-repo-name-in-LLVM-IR.patch | |||
@@ -0,0 +1,49 @@ | |||
1 | From b794037bf1f90a93efa4c542855ad569cb13b4c5 Mon Sep 17 00:00:00 2001 | ||
2 | From: Feng Zou <feng.zou@intel.com> | ||
3 | Date: Mon, 19 Oct 2020 14:43:38 +0800 | ||
4 | Subject: [PATCH 4/7] Remove repo name in LLVM IR | ||
5 | |||
6 | Upstream-Status: Backport [Taken from opencl-clang patches, https://github.com/intel/opencl-clang/blob/ocl-open-100/patches/llvm/0003-Remove-repo-name-in-LLVM-IR.patch] | ||
7 | Signed-off-by: Feng Zou <feng.zou@intel.com> | ||
8 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> | ||
9 | --- | ||
10 | llvm/cmake/modules/VersionFromVCS.cmake | 23 ++++++++++++----------- | ||
11 | 1 file changed, 12 insertions(+), 11 deletions(-) | ||
12 | |||
13 | diff --git a/llvm/cmake/modules/VersionFromVCS.cmake b/llvm/cmake/modules/VersionFromVCS.cmake | ||
14 | index 1b6519b4b7c4..8fd6b23bb345 100644 | ||
15 | --- a/llvm/cmake/modules/VersionFromVCS.cmake | ||
16 | +++ b/llvm/cmake/modules/VersionFromVCS.cmake | ||
17 | @@ -33,17 +33,18 @@ function(get_source_info path revision repository) | ||
18 | else() | ||
19 | set(remote "origin") | ||
20 | endif() | ||
21 | - execute_process(COMMAND ${GIT_EXECUTABLE} remote get-url ${remote} | ||
22 | - WORKING_DIRECTORY ${path} | ||
23 | - RESULT_VARIABLE git_result | ||
24 | - OUTPUT_VARIABLE git_output | ||
25 | - ERROR_QUIET) | ||
26 | - if(git_result EQUAL 0) | ||
27 | - string(STRIP "${git_output}" git_output) | ||
28 | - set(${repository} ${git_output} PARENT_SCOPE) | ||
29 | - else() | ||
30 | - set(${repository} ${path} PARENT_SCOPE) | ||
31 | - endif() | ||
32 | + # Do not show repo name in IR | ||
33 | + # execute_process(COMMAND ${GIT_EXECUTABLE} remote get-url ${remote} | ||
34 | + # WORKING_DIRECTORY ${path} | ||
35 | + # RESULT_VARIABLE git_result | ||
36 | + # OUTPUT_VARIABLE git_output | ||
37 | + # ERROR_QUIET) | ||
38 | + # if(git_result EQUAL 0) | ||
39 | + # string(STRIP "${git_output}" git_output) | ||
40 | + # set(${repository} ${git_output} PARENT_SCOPE) | ||
41 | + # else() | ||
42 | + # set(${repository} ${path} PARENT_SCOPE) | ||
43 | + # endif() | ||
44 | endif() | ||
45 | endif() | ||
46 | endfunction() | ||
47 | -- | ||
48 | 2.17.1 | ||
49 | |||