{"id":19176907,"url":"https://github.com/oasisdigital/bazel-c-cpp-toolchain","last_synced_at":"2026-02-26T20:47:48.076Z","repository":{"id":90492936,"uuid":"472930445","full_name":"OasisDigital/bazel-c-cpp-toolchain","owner":"OasisDigital","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-14T16:27:16.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-29T21:54:36.940Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Starlark","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OasisDigital.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,"publiccode":null,"codemeta":null}},"created_at":"2022-03-22T20:39:38.000Z","updated_at":"2022-03-22T20:41:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"d6f82733-516a-49f6-a415-84ea296b484e","html_url":"https://github.com/OasisDigital/bazel-c-cpp-toolchain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OasisDigital/bazel-c-cpp-toolchain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OasisDigital%2Fbazel-c-cpp-toolchain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OasisDigital%2Fbazel-c-cpp-toolchain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OasisDigital%2Fbazel-c-cpp-toolchain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OasisDigital%2Fbazel-c-cpp-toolchain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OasisDigital","download_url":"https://codeload.github.com/OasisDigital/bazel-c-cpp-toolchain/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OasisDigital%2Fbazel-c-cpp-toolchain/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29872659,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T18:42:30.764Z","status":"ssl_error","status_checked_at":"2026-02-26T18:41:47.936Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11-09T10:31:05.447Z","updated_at":"2026-02-26T20:47:48.035Z","avatar_url":"https://github.com/OasisDigital.png","language":"Starlark","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Oasis Digital Bazel examples\n\nWe use these examples to teach Bazel, but you are welcome to study them\nfor your own purposes!\n\nhttps://oasisdigital.com/class/bazel\n\n## Cross-compile toolchain example\n\nThis is an example of cross-compiling with a custom toolchain.\n\nIt is not intended to be production-grade, but rather to be useful in explaining\nhow to set up toolchains.\n\n## Tool installation\n\nIdeally we'll build all the tools from source using Bazel, but to keep the focus\non toolchain setup, install them with your OS package manager instead.\n\n```sh\nsudo apt install cc65 stella\n```\n\n```sh\nbrew install cc65 stella\n```\n\n(Not working yet here:) On windows, download the cc65 precompiled binaries.\n\nhttps://sourceforge.net/projects/cc65/files/cc65-snapshot-win32.zip\n\n## Build\n\nthe old way: make\n\nthe new way: bazel build '...'\n\n## Run\n\nRun the make-generated binary:\n\n```sh\nstella game/hello\n```\n\n```sh\n/usr/local/Cellar/stella/6.6/Stella.app/Contents/MacOS/Stella game/hello\n```\n\nRun the Bazel-generated binary:\n\n```sh\nstella bazel-out/darwin-fastbuild/bin/game/hello\n```\n\n```sh\n/usr/local/Cellar/stella/6.6/Stella.app/Contents/MacOS/Stella bazel-out/darwin-fastbuild/bin/game/hello\n```\n\n## Future enhancement\n\nConsider building the cc65 toolchain hermetically instead of relying\non an OS-level package.\n\nhttps://github.com/cc65/cc65/archive/refs/heads/master.zip\n\nConsider showing how to adopt an off-the-shelf embedded toolchain,\nfrom this collection:\n\nhttps://github.com/silvergasp/bazel-embedded\n\nConsider demonstrating this LLVM toolchain:\n\nhttps://github.com/grailbio/bazel-toolchain\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foasisdigital%2Fbazel-c-cpp-toolchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foasisdigital%2Fbazel-c-cpp-toolchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foasisdigital%2Fbazel-c-cpp-toolchain/lists"}