|
| 1 | +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Keeley Hammond <khammond@slack-corp.com> |
| 3 | +Date: Wed, 16 Jul 2025 20:19:56 -0700 |
| 4 | +Subject: Revert "Use more binaries from clang toolchain in mac build" |
| 5 | + |
| 6 | +This reverts commit 17b850a9f8e913fb5e465d895f545b069def57d1. |
| 7 | + |
| 8 | +diff --git a/DEPS b/DEPS |
| 9 | +index feb3c8b75290fdb4ef9274e136e1ce6eb2072846..b78802471c23017eae8ff64d33206794d59a996f 100644 |
| 10 | +--- a/DEPS |
| 11 | ++++ b/DEPS |
| 12 | +@@ -906,13 +906,6 @@ deps = { |
| 13 | + 'generation': 1752145989568677, |
| 14 | + 'condition': 'host_os == "mac" and host_cpu == "x64" and checkout_clang_coverage_tools', |
| 15 | + }, |
| 16 | +- { |
| 17 | +- 'object_name': 'Mac/llvmobjdump-llvmorg-21-init-16348-gbd809ffb-13.tar.xz', |
| 18 | +- 'sha256sum': 'fff3642ab8fbfffa4f5e8feda7b7f8ab7838099b2d0d1f5ce323a1d8aebf05ca', |
| 19 | +- 'size_bytes': 5490072, |
| 20 | +- 'generation': 1752145989091474, |
| 21 | +- 'condition': 'host_os == "mac" and host_cpu == "x64"', |
| 22 | +- }, |
| 23 | + { |
| 24 | + 'object_name': 'Mac_arm64/clang-llvmorg-21-init-16348-gbd809ffb-13.tar.xz', |
| 25 | + 'sha256sum': '68460f5290547d101c4c9c2e4ea74b783159e553e90dad5b422f03f58d16d05c', |
| 26 | +@@ -941,13 +934,6 @@ deps = { |
| 27 | + 'generation': 1752146011858185, |
| 28 | + 'condition': 'host_os == "mac" and host_cpu == "arm64" and checkout_clang_coverage_tools', |
| 29 | + }, |
| 30 | +- { |
| 31 | +- 'object_name': 'Mac_arm64/llvmobjdump-llvmorg-21-init-16348-gbd809ffb-13.tar.xz', |
| 32 | +- 'sha256sum': 'a8fddab5bd008eeac135e832fe327d15459bc7b1d2ca87a12fa4a9ba3c4be009', |
| 33 | +- 'size_bytes': 5317004, |
| 34 | +- 'generation': 1752146011233744, |
| 35 | +- 'condition': 'host_os == "mac" and host_cpu == "arm64"', |
| 36 | +- }, |
| 37 | + { |
| 38 | + 'object_name': 'Win/clang-llvmorg-21-init-16348-gbd809ffb-13.tar.xz', |
| 39 | + 'sha256sum': '1021cc3231615a3556f691820014eb40dc93b4eb714bf4037dced002a454b763', |
| 40 | +diff --git a/build/toolchain/apple/toolchain.gni b/build/toolchain/apple/toolchain.gni |
| 41 | +index d3fdadf72eb0aa36ae9ae0d4324b61143bc55b66..d5210da1aa3bbda87ca540f67a1768dec70f3675 100644 |
| 42 | +--- a/build/toolchain/apple/toolchain.gni |
| 43 | ++++ b/build/toolchain/apple/toolchain.gni |
| 44 | +@@ -115,9 +115,6 @@ template("single_apple_toolchain") { |
| 45 | + host_toolchain = host_toolchain |
| 46 | + } |
| 47 | + |
| 48 | +- # bin_path is only used in some builds. |
| 49 | +- not_needed(invoker, [ "bin_path" ]) |
| 50 | +- |
| 51 | + # When the invoker has explicitly overridden cc_wrapper in the |
| 52 | + # toolchain args, use those values, otherwise default to the global one. |
| 53 | + # This works because the only reasonable override that toolchains might |
| 54 | +@@ -213,7 +210,7 @@ template("single_apple_toolchain") { |
| 55 | + linker_driver_args = "-Wcrl,driver,$ld" |
| 56 | + |
| 57 | + # Specify an explicit path for the strip binary. |
| 58 | +- _strippath = "${prefix}llvm-strip" |
| 59 | ++ _strippath = invoker.bin_path + "strip" |
| 60 | + _installnametoolpath = "${prefix}llvm-install-name-tool" |
| 61 | + linker_driver_args += " -Wcrl,strippath,${_strippath} -Wcrl,installnametoolpath,${_installnametoolpath}" |
| 62 | + _enable_dsyms = enable_dsyms |
| 63 | +@@ -496,8 +493,13 @@ template("single_apple_toolchain") { |
| 64 | + # search path in /usr/bin are thin wrappers around xcrun, which requires a |
| 65 | + # full CommandLineTools or Xcode install, and still may not choose the |
| 66 | + # appropriate binary if there are multiple installs. |
| 67 | +- nm = "${prefix}llvm-nm" |
| 68 | +- otool = "${prefix}llvm-otool" |
| 69 | ++ if (host_os == "mac") { |
| 70 | ++ nm = invoker.bin_path + "nm" |
| 71 | ++ otool = invoker.bin_path + "otool" |
| 72 | ++ } else { |
| 73 | ++ nm = "${prefix}llvm-nm" |
| 74 | ++ otool = "${prefix}llvm-otool" |
| 75 | ++ } |
| 76 | + |
| 77 | + link_command = "$linker_driver_env $linker_driver" |
| 78 | + link_command += " -Wcrl,otoolpath,$otool -Wcrl,nmpath,$nm" |
| 79 | +diff --git a/tools/clang/scripts/sync_deps.py b/tools/clang/scripts/sync_deps.py |
| 80 | +index 79871b89f773f9d88c74832ad0488a8f7f3e2405..7c18b8f2ade0889d82251337f62574ed8533dc43 100755 |
| 81 | +--- a/tools/clang/scripts/sync_deps.py |
| 82 | ++++ b/tools/clang/scripts/sync_deps.py |
| 83 | +@@ -34,14 +34,12 @@ CLANG_PLATFORM_TO_PACKAGE_FILES = { |
| 84 | + 'clang-tidy', |
| 85 | + 'clangd', |
| 86 | + 'llvm-code-coverage', |
| 87 | +- 'llvmobjdump', |
| 88 | + ], |
| 89 | + 'Mac_arm64': [ |
| 90 | + 'clang', |
| 91 | + 'clang-tidy', |
| 92 | + 'clangd', |
| 93 | + 'llvm-code-coverage', |
| 94 | +- 'llvmobjdump', |
| 95 | + ], |
| 96 | + 'Win': [ |
| 97 | + 'clang', |
0 commit comments