From efc0ea7fc6de6853c2bc6157f1f8a66c671531e4 Mon Sep 17 00:00:00 2001
From: heppen <hepeng68@huawei.com>
Date: Fri, 4 Aug 2023 11:45:16 +0800
Subject: [PATCH] change clang compiler path

---
 config/clang/clang.gni      | 4 ++--
 toolchain/gcc_toolchain.gni | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/config/clang/clang.gni b/config/clang/clang.gni
index 9728e12..f00283c 100755
--- a/config/clang/clang.gni
+++ b/config/clang/clang.gni
@@ -4,9 +4,9 @@
 
 import("//build/toolchain/toolchain.gni")
 
-default_clang_base_path = "/usr/lib64/llvm15/"
+default_clang_base_path = "/usr/"
 clang_lib_path =
-    "${default_clang_base_path}/lib/clang/15.0.7/lib"
+    "/usr/lib64"
 
 declare_args() {
   # Indicates if the build should use the Chrome-specific plugins for enforcing
diff --git a/toolchain/gcc_toolchain.gni b/toolchain/gcc_toolchain.gni
index 6a68e42..0c91ccf 100755
--- a/toolchain/gcc_toolchain.gni
+++ b/toolchain/gcc_toolchain.gni
@@ -585,7 +585,7 @@ template("clang_toolchain") {
 
   gcc_toolchain(target_name) {
     # prefix = rebase_path("$clang_base_path/bin", root_build_dir)
-    prefix = "/usr/lib64/llvm15/bin"
+    prefix = "/usr/bin"
     cc = "$prefix/clang"
     cxx = "$prefix/clang++"
     ld = cxx
-- 
2.33.0

