0001-build-config-make-sure-target_cpu-is-honored-in-tool.patch 1001 B

123456789101112131415161718192021222324252627
  1. From 41a39ad79244bcbd710e496a3bdab94d0309ce85 Mon Sep 17 00:00:00 2001
  2. From: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  3. Date: Fri, 14 Jan 2022 07:30:10 +0000
  4. Subject: [PATCH] build: config: make sure target_cpu is honored in
  5. toolchain settings
  6. Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  7. ---
  8. build/config/BUILDCONFIG.gn | 2 +-
  9. 1 file changed, 1 insertion(+), 1 deletion(-)
  10. diff --git a/build/config/BUILDCONFIG.gn b/build/config/BUILDCONFIG.gn
  11. index d960648941d8b..51da82f22945d 100644
  12. --- a/build/config/BUILDCONFIG.gn
  13. +++ b/build/config/BUILDCONFIG.gn
  14. @@ -195,7 +195,7 @@ if (host_toolchain == "") {
  15. if (target_os != "linux") {
  16. host_toolchain = "//build/toolchain/linux:clang_$host_cpu"
  17. } else if (is_clang) {
  18. - host_toolchain = "//build/toolchain/linux:clang_$host_cpu"
  19. + host_toolchain = "//build/toolchain/linux:clang_$target_cpu"
  20. } else {
  21. host_toolchain = "//build/toolchain/linux:$host_cpu"
  22. }
  23. --
  24. 2.25.1