diff options
Diffstat (limited to 'dynamic-layers/clang-layer/recipes-devtools/clang/files/0001-dont-export-targets-for-binaries.patch')
-rw-r--r-- | dynamic-layers/clang-layer/recipes-devtools/clang/files/0001-dont-export-targets-for-binaries.patch | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/dynamic-layers/clang-layer/recipes-devtools/clang/files/0001-dont-export-targets-for-binaries.patch b/dynamic-layers/clang-layer/recipes-devtools/clang/files/0001-dont-export-targets-for-binaries.patch index 9d25bbad..da2475f9 100644 --- a/dynamic-layers/clang-layer/recipes-devtools/clang/files/0001-dont-export-targets-for-binaries.patch +++ b/dynamic-layers/clang-layer/recipes-devtools/clang/files/0001-dont-export-targets-for-binaries.patch | |||
@@ -1,38 +1,39 @@ | |||
1 | From 7bbd0058362ac3bb5edd7a82d43e1785810776b3 Mon Sep 17 00:00:00 2001 | 1 | From 559fb8f82295ec4dc64a132b6566939b85c1b6fe Mon Sep 17 00:00:00 2001 |
2 | From: Anuj Mittal <anuj.mittal@intel.com> | 2 | From: Anuj Mittal <anuj.mittal@intel.com> |
3 | Date: Fri, 29 Mar 2019 08:56:53 +0800 | 3 | Date: Thu, 15 Aug 2019 22:34:31 +0800 |
4 | Subject: [PATCH] dont export targets for binaries | 4 | Subject: [PATCH] dont export targets for binaries |
5 | 5 | ||
6 | The projects using LLVM cmake modules look for target binaries in | 6 | The projects using LLVM cmake modules look for target binaries in |
7 | sysroot as a result which isn't desirable in this case and isn't needed | 7 | sysroot as a result which isn't desirable in this case and isn't needed |
8 | either. | 8 | either. |
9 | 9 | ||
10 | Upstream-Status: Inappropriate [cross-compile specific] | 10 | Upstream-Status: Inappropriate [cross-compile specific] |
11 | 11 | ||
12 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | 12 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> |
13 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> | ||
13 | --- | 14 | --- |
14 | llvm/cmake/modules/AddLLVM.cmake | 9 --------- | 15 | llvm/cmake/modules/AddLLVM.cmake | 9 --------- |
15 | llvm/cmake/modules/TableGen.cmake | 6 ------ | 16 | llvm/cmake/modules/TableGen.cmake | 6 ------ |
16 | 2 files changed, 15 deletions(-) | 17 | 2 files changed, 15 deletions(-) |
17 | 18 | ||
18 | diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake | 19 | diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake |
19 | index 0df6845..b79f4fa 100644 | 20 | index 619e986b8aa..d2bc1a25dd9 100644 |
20 | --- a/llvm/cmake/modules/AddLLVM.cmake | 21 | --- a/llvm/cmake/modules/AddLLVM.cmake |
21 | +++ b/llvm/cmake/modules/AddLLVM.cmake | 22 | +++ b/llvm/cmake/modules/AddLLVM.cmake |
22 | @@ -866,12 +866,6 @@ macro(add_llvm_tool name) | 23 | @@ -898,12 +898,6 @@ macro(add_llvm_tool name) |
23 | 24 | ||
24 | if ( ${name} IN_LIST LLVM_TOOLCHAIN_TOOLS OR NOT LLVM_INSTALL_TOOLCHAIN_ONLY) | 25 | if ( ${name} IN_LIST LLVM_TOOLCHAIN_TOOLS OR NOT LLVM_INSTALL_TOOLCHAIN_ONLY) |
25 | if( LLVM_BUILD_TOOLS ) | 26 | if( LLVM_BUILD_TOOLS ) |
27 | - set(export_to_llvmexports) | ||
26 | - if(${name} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR | 28 | - if(${name} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR |
27 | - NOT LLVM_DISTRIBUTION_COMPONENTS) | 29 | - NOT LLVM_DISTRIBUTION_COMPONENTS) |
28 | - set(export_to_llvmexports EXPORT LLVMExports) | 30 | - set(export_to_llvmexports EXPORT LLVMExports) |
29 | - set_property(GLOBAL PROPERTY LLVM_HAS_EXPORTS True) | 31 | - set_property(GLOBAL PROPERTY LLVM_HAS_EXPORTS True) |
30 | - endif() | 32 | - endif() |
31 | - | 33 | |
32 | install(TARGETS ${name} | 34 | install(TARGETS ${name} |
33 | ${export_to_llvmexports} | 35 | ${export_to_llvmexports} |
34 | RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR} | 36 | @@ -917,9 +911,6 @@ macro(add_llvm_tool name) |
35 | @@ -884,9 +878,6 @@ macro(add_llvm_tool name) | ||
36 | endif() | 37 | endif() |
37 | endif() | 38 | endif() |
38 | endif() | 39 | endif() |
@@ -43,18 +44,19 @@ index 0df6845..b79f4fa 100644 | |||
43 | endmacro(add_llvm_tool name) | 44 | endmacro(add_llvm_tool name) |
44 | 45 | ||
45 | diff --git a/llvm/cmake/modules/TableGen.cmake b/llvm/cmake/modules/TableGen.cmake | 46 | diff --git a/llvm/cmake/modules/TableGen.cmake b/llvm/cmake/modules/TableGen.cmake |
46 | index 3c84ae7..141219f 100644 | 47 | index 36c026b5c0f..537acd696d8 100644 |
47 | --- a/llvm/cmake/modules/TableGen.cmake | 48 | --- a/llvm/cmake/modules/TableGen.cmake |
48 | +++ b/llvm/cmake/modules/TableGen.cmake | 49 | +++ b/llvm/cmake/modules/TableGen.cmake |
49 | @@ -164,14 +164,8 @@ macro(add_tablegen target project) | 50 | @@ -148,15 +148,9 @@ macro(add_tablegen target project) |
50 | endif() | 51 | endif() |
51 | 52 | ||
52 | if (${project} STREQUAL LLVM AND NOT LLVM_INSTALL_TOOLCHAIN_ONLY) | 53 | if (${project} STREQUAL LLVM AND NOT LLVM_INSTALL_TOOLCHAIN_ONLY AND LLVM_BUILD_UTILS) |
54 | - set(export_to_llvmexports) | ||
53 | - if(${target} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR | 55 | - if(${target} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR |
54 | - NOT LLVM_DISTRIBUTION_COMPONENTS) | 56 | - NOT LLVM_DISTRIBUTION_COMPONENTS) |
55 | - set(export_to_llvmexports EXPORT LLVMExports) | 57 | - set(export_to_llvmexports EXPORT LLVMExports) |
56 | - endif() | 58 | - endif() |
57 | - | 59 | |
58 | install(TARGETS ${target} | 60 | install(TARGETS ${target} |
59 | ${export_to_llvmexports} | 61 | ${export_to_llvmexports} |
60 | RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR}) | 62 | RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR}) |
@@ -62,5 +64,5 @@ index 3c84ae7..141219f 100644 | |||
62 | - set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${target}) | 64 | - set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${target}) |
63 | endmacro() | 65 | endmacro() |
64 | -- | 66 | -- |
65 | 2.7.4 | 67 | 2.17.1 |
66 | 68 | ||