0039-add-workaround-to-avoid-rebuild-sysroot.patch 1.1 KB

1234567891011121314151617181920212223242526
  1. From 764cad7f02760636c09425cf1c4a705186c535d3 Mon Sep 17 00:00:00 2001
  2. From: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  3. Date: Wed, 22 Jun 2022 08:04:54 +0000
  4. Subject: [PATCH 39/68] add workaround to avoid rebuild sysroot
  5. Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  6. ---
  7. build/config/posix/BUILD.gn | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. diff --git a/build/config/posix/BUILD.gn b/build/config/posix/BUILD.gn
  10. index 5d1516387571..78fb9aa2e5c0 100644
  11. --- a/build/config/posix/BUILD.gn
  12. +++ b/build/config/posix/BUILD.gn
  13. @@ -28,7 +28,7 @@ config("runtime_library") {
  14. if (!is_apple && sysroot != "" && current_os != "zos") {
  15. # Pass the sysroot to all C compiler variants, the assembler, and linker.
  16. sysroot_flags = [ "--sysroot=" + rebase_path(sysroot, root_build_dir) ]
  17. - if (is_linux || is_chromeos) {
  18. + if (is_chromeos) {
  19. # This is here so that all files get recompiled after a sysroot roll and
  20. # when turning the sysroot on or off. (defines are passed via the command
  21. # line, and build system rebuilds things when their commandline
  22. --
  23. 2.30.2