diff --git a/1001-add-anolis-os-support-in-driver.patch b/1001-add-anolis-os-support-in-driver.patch new file mode 100644 index 0000000000000000000000000000000000000000..04a25dfba16b70754e23cc6116410c8f5155029d --- /dev/null +++ b/1001-add-anolis-os-support-in-driver.patch @@ -0,0 +1,35 @@ +From 0935bc7537d581d990a4ddacf37a7725ae955de8 Mon Sep 17 00:00:00 2001 +From: happy_orange +Date: Tue, 21 Jun 2022 05:56:43 -0400 +Subject: [PATCH] add anolis os support in driver + +--- + lib/Driver/ToolChains/Gnu.cpp | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/a1/lib/Driver/ToolChains/Gnu.cpp b/b1/lib/Driver/ToolChains/Gnu.cpp +index 8536701a..25d3d42d 100644 +--- a/a1/lib/Driver/ToolChains/Gnu.cpp ++++ b/b1/lib/Driver/ToolChains/Gnu.cpp +@@ -2099,7 +2099,7 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes( + static const char *const AArch64LibDirs[] = {"/lib64", "/lib"}; + static const char *const AArch64Triples[] = { + "aarch64-none-linux-gnu", "aarch64-linux-gnu", "aarch64-redhat-linux", +- "aarch64-suse-linux", "aarch64-linux-android"}; ++ "aarch64-suse-linux", "aarch64-linux-android", "aarch64-anolis-linux"}; + static const char *const AArch64beLibDirs[] = {"/lib"}; + static const char *const AArch64beTriples[] = {"aarch64_be-none-linux-gnu", + "aarch64_be-linux-gnu"}; +@@ -2127,7 +2127,8 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes( + "x86_64-redhat-linux", "x86_64-suse-linux", + "x86_64-manbo-linux-gnu", "x86_64-linux-gnu", + "x86_64-slackware-linux", "x86_64-unknown-linux", +- "x86_64-amazon-linux", "x86_64-linux-android"}; ++ "x86_64-amazon-linux", "x86_64-linux-android", ++ "x86_64-anolis-linux"}; + static const char *const X32Triples[] = {"x86_64-linux-gnux32", + "x86_64-pc-linux-gnux32"}; + static const char *const X32LibDirs[] = {"/libx32", "/lib"}; +-- +2.27.0 + diff --git a/clang.spec b/clang.spec index a53fd65e1f9721938421b4c6d83bdc001a517a19..9d6484c2f3132d492b1b02e52bd7da207e9b8452 100644 --- a/clang.spec +++ b/clang.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %bcond_with compat_build %bcond_without check @@ -75,6 +75,8 @@ Patch4: 0004-cmake-Allow-shared-libraries-to-customize-the-soname.patch Patch5: 0005-PATCH-clang-Fix-scan-build-py-executable-lookup-path.patch Patch6: 0006-Work-around-gcc-miscompile.patch +Patch7: 1001-add-anolis-os-support-in-driver.patch + BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: cmake @@ -444,5 +446,8 @@ false %{python3_sitelib}/clang/ %changelog +* Tue Jun 21 2022 happy_orange - 13.0.1-2 +- add anolis driver support + * Mon Apr 25 2022 happy_orange - 13.0.1-1 - package init form upstream