!131 Fix for missing -DENABLE_AUTOTUNER in compilation
From: @liyunfei33 Reviewed-by: @cf-zhao Signed-off-by: @cf-zhao
This commit is contained in:
commit
62e3085581
17
0017-fix-for-missing-DENABLE_AUTOTUNER.patch
Normal file
17
0017-fix-for-missing-DENABLE_AUTOTUNER.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt
|
||||||
|
index 949f12d3ce8c..98fcb6ea1a07 100644
|
||||||
|
--- a/clang/CMakeLists.txt
|
||||||
|
+++ b/clang/CMakeLists.txt
|
||||||
|
@@ -322,6 +322,10 @@ if (BUILD_FOR_OPENEULER)
|
||||||
|
add_definitions( -DBUILD_FOR_OPENEULER )
|
||||||
|
endif()
|
||||||
|
|
||||||
|
+if (LLVM_ENABLE_AUTOTUNER)
|
||||||
|
+ add_definitions( -DENABLE_AUTOTUNER )
|
||||||
|
+endif()
|
||||||
|
+
|
||||||
|
# Determine HOST_LINK_VERSION on Darwin.
|
||||||
|
set(HOST_LINK_VERSION)
|
||||||
|
if (APPLE AND NOT CMAKE_LINKER MATCHES ".*lld.*")
|
||||||
|
--
|
||||||
|
|
||||||
@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
Name: %{pkg_name}
|
Name: %{pkg_name}
|
||||||
Version: %{clang_version}
|
Version: %{clang_version}
|
||||||
Release: 20
|
Release: 21
|
||||||
Summary: A C language family front-end for LLVM
|
Summary: A C language family front-end for LLVM
|
||||||
|
|
||||||
License: NCSA
|
License: NCSA
|
||||||
@ -68,6 +68,7 @@ Patch13: 0013-Ignored-option-Wa-generate-missing-build-notes.patch
|
|||||||
Patch14: 0014-Update-llvm-lit-config-to-support-build_for_openeule.patch
|
Patch14: 0014-Update-llvm-lit-config-to-support-build_for_openeule.patch
|
||||||
Patch15: 0015-Backport-Defer-the-instantiation-of-explicit-specifier-until-.patch
|
Patch15: 0015-Backport-Defer-the-instantiation-of-explicit-specifier-until-.patch
|
||||||
Patch16: 0016-Add-BiSheng-Autotuner-support-for-LLVM-compiler.patch
|
Patch16: 0016-Add-BiSheng-Autotuner-support-for-LLVM-compiler.patch
|
||||||
|
Patch17: 0017-fix-for-missing-DENABLE_AUTOTUNER.patch
|
||||||
|
|
||||||
# Patches for clang-tools-extra
|
# Patches for clang-tools-extra
|
||||||
# See https://reviews.llvm.org/D120301
|
# See https://reviews.llvm.org/D120301
|
||||||
@ -412,6 +413,9 @@ LD_LIBRARY_PATH=%{buildroot}/%{install_libdir} %{__ninja} check-all -C ./_build
|
|||||||
%{install_bindir}/git-clang-format
|
%{install_bindir}/git-clang-format
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 20 2024 liyunfei <liyunfei33@huawei.com> - 17.0.6-21
|
||||||
|
- Fix for missing -DENABLE_AUTOTUNER in compilation.
|
||||||
|
|
||||||
* Tue Jul 30 2024 liyunfei <liyunfei33@huawei.com> - 17.0.6-20
|
* Tue Jul 30 2024 liyunfei <liyunfei33@huawei.com> - 17.0.6-20
|
||||||
- Disable toolchain_clang build for BiSheng Autotuner support temporary.
|
- Disable toolchain_clang build for BiSheng Autotuner support temporary.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user