
gclient file and a directory called src in the working directory. When fetch completes, it will have created a hidden. You can call git fetch -unshallow to retrieve the full history later.Įxpect the command to take 30 minutes on even a fast connection, and many hours on slower ones. If you don't need the full repo history, you can save time by using fetch -no-history chromium. Running the fetch with caffeinate is optional, but it will prevent the system from sleeping for the duration of the fetch command, which may run for a considerable amount of time. Run the fetch tool from depot_tools to check out the code and its dependencies. Assuming you cloned depot_tools to /path/to/depot_tools (note: you must use the absolute path or Python will not be able to find infra tools): $ export PATH = "$PATH:/path/to/depot_tools" Get the codeĬreate a chromium directory for the checkout and change to it (you can call this whatever you like and put it wherever you like, as long as the full path has no spaces): $ mkdir chromium & cd chromium We don‘t use Xcode itself much, so if you’re know what you're doing, you can likely get the build working with an older version of macOS as long as you get a new version of the macOS SDK on it.Īn APFS-formatted volume (this is the default format for macOS volumes).Ĭlone the depot_tools repository: $ git clone https : ///chromium/tools/depot_tools.gitĪdd depot_tools to the end of your PATH (you will probably want to put this in your ~/.bash_profile or ~/.zshrc). The easiest way to get the newest SDK is to use the newest version of Xcode, which often requires using the newest version of macOS. Building with a newer SDK usually works too (please fix or file a bug if it doesn't).īuilding with an older SDK might also work, but if it doesn‘t then we won’t accept changes for making it work. mac_sdk_official_version in mac_sdk.gni is the SDK version used on all the bots and for official builds, so that version is guaranteed to work. To check whether you have it, and what version you have.

Run $ ls `xcode-select -p` / Platforms / MacOSX. Exclude checkout from Spotlight indexingĪ Mac, Intel or Arm.

