{"id":13450671,"url":"https://github.com/vsco/bazel-toolchains","last_synced_at":"2025-10-04T08:41:10.300Z","repository":{"id":70220900,"uuid":"97660454","full_name":"vsco/bazel-toolchains","owner":"vsco","description":"A collection of Bazel C++ build infrastructure based on Chromium's LLVM toolchain.","archived":false,"fork":false,"pushed_at":"2019-01-14T18:12:29.000Z","size":45,"stargazers_count":38,"open_issues_count":1,"forks_count":8,"subscribers_count":27,"default_branch":"master","last_synced_at":"2024-10-28T17:39:22.874Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vsco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-07-19T01:43:27.000Z","updated_at":"2023-03-25T04:42:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"3acd9033-8af3-4f15-89cd-baec8eac8b3d","html_url":"https://github.com/vsco/bazel-toolchains","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsco%2Fbazel-toolchains","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsco%2Fbazel-toolchains/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsco%2Fbazel-toolchains/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsco%2Fbazel-toolchains/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vsco","download_url":"https://codeload.github.com/vsco/bazel-toolchains/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245130904,"owners_count":20565742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T07:00:37.185Z","updated_at":"2025-10-04T08:41:05.282Z","avatar_url":"https://github.com/vsco.png","language":"Python","readme":"# Bazel Toolchains\n\n[![Build Status](https://travis-ci.org/vsco/bazel-toolchains.svg?branch=master)](https://travis-ci.org/vsco/bazel-toolchains)\n\nA collection of [Bazel](https://bazel.build) C++ build infrastructure based on [Chromium](https://chromium.org)'s\n[LLVM](https://llvm.org) toolchain. There are tags corresponding to Chromium releases. The build targets currently\nsupported are Linux x64 and macOS. As in Chromium, the Linux toolchain has a sysroot, bundled copies of binutils, and a\ncopy of libc++. The macOS build is less hermetic, and relies on system binutils and libraries.\n\nUse it in your Bazel WORKSPACE file like this:\n\n```\ngit_repository(\n    name = 'co_vsco_bazel_toolchains',\n    remote = 'https://github.com/vsco/bazel-toolchains',\n    tag = 'v64.0.3282.167',\n)\n\nload(\"@co_vsco_bazel_toolchains//toolchains:repositories.bzl\", \"bazel_toolchains_repositories\")\nbazel_toolchains_repositories()\n```\n\nInvoke Bazel with the custom toolchain:\n\n`bazel build --crosstool_top=@co_vsco_bazel_toolchains//tools/cpp:default-toolchain //your/build:target`\n\n## Bazel Compatibility\n\n`vsco/bazel-toolchains` is tested against the following build matrix:\n\n| Bazel Version   | OSX | Linux |\n| :-------------- | :-: | :---: |\n| 0.20.0+         | ✗   | ✗    |\n| 0.19.2          | ✓   | ✓    |\n| 0.18.1          | ✓   | ✓    |\n| 0.17.2          | ✓   | ✓    |\n| 0.16.1          | ✓   | ✓    |\n| 0.15.2          | ✓   | ✓    |\n| 0.14.1          | ✓   | ✓    |\n| 0.13.1          | ✓   | ✓    |\n| 0.12.0          | ✓   | ✓    |\n| ~0.11.x~        | ✗   | ✗     |\n| ~0.10.x~        | ✗   | ✗     |\n| ~0.9.x~         | ✗   | ✗     |\n\nBuilds beyond the listed versions are not currently tested.\n\nBazel `0.20.0+` introduced breaking changes to the [C++ Toolchain API](https://github.com/bazelbuild/bazel/issues/6434)\nwhich need to be addressed for consumers of this repo in a non-breaking manner.\n\n## Prerequisites\n\nOn macOS, run `xcode-select --install` in Terminal.\n\n## Running the Python scripts\n\nThe files in the `scripts/` directory are written in Python. Follow these\n[instructions](http://docs.python-guide.org/en/latest/starting/installation/)\nto install a version of Python that comes with the necessary tools for installation of third party libraries. On macOS,\nthis means `brew install python`, and then following the instructions printed by `brew info python` (It's recommended to use `python@2` for macOS).\n\nOnce that's working, type `pip install requests` to install the necessary dependencies.\n\nFrom the root of this repository, type `python scripts/generate_workspace.py --rev=\"64.0.3282.167\"` where --rev is the\nChromium tag you wish to pull from. The script will print status messages to `stderr` and write a file similar to\ntoolchains/repositories.bzl to `stdout`.\n","funding_links":[],"categories":["Tooling"],"sub_categories":["Toolchains"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvsco%2Fbazel-toolchains","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvsco%2Fbazel-toolchains","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvsco%2Fbazel-toolchains/lists"}