{"id":19176906,"url":"https://github.com/oasisdigital/bazel-c-cpp-example","last_synced_at":"2025-06-13T03:01:30.519Z","repository":{"id":90492948,"uuid":"472508941","full_name":"OasisDigital/bazel-c-cpp-example","owner":"OasisDigital","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-14T16:27:07.000Z","size":173,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-02-16T15:04:23.906Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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-21T20:54:11.000Z","updated_at":"2022-12-25T01:28:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"687b7021-8836-4ff3-a0c6-467fa1c42ef5","html_url":"https://github.com/OasisDigital/bazel-c-cpp-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OasisDigital%2Fbazel-c-cpp-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OasisDigital%2Fbazel-c-cpp-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OasisDigital%2Fbazel-c-cpp-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OasisDigital%2Fbazel-c-cpp-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OasisDigital","download_url":"https://codeload.github.com/OasisDigital/bazel-c-cpp-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240254292,"owners_count":19772393,"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-11-09T10:31:05.173Z","updated_at":"2025-02-23T01:16:50.192Z","avatar_url":"https://github.com/OasisDigital.png","language":"C++","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## C++ Bazel setup\n\nFrom a Github comment:\n\n\"Bazel is a really hard sell compared to other build systems when it is\nonly usable in one IDE (CLion) and only on one operating system\n(Linux).\"\n\nBut things are not as tough as that commenter suggested - many orgs have\nlocal tweaks to make the tools sufficient for lots of Real Work.\n\n## IntelliJ (CLion) Bazel integration has trouble on Windows\n\nhttps://github.com/bazelbuild/intellij/issues/113\n\n## MacOS workaround for CLion\n\nTo work around the error \"Warning:Unable to check compiler version ...\",\n\nhttps://github.com/bazelbuild/intellij/issues/1545\n\nadd this to your shell setup:\n\nexport DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer\n\n## MacOS C/C++ debugging trouble\n\nAs of early 2022, debugging is broken by default for C/C++ on MacOS.\nThis issues describes the problem and links to several others.\n\nhttps://github.com/bazelbuild/bazel/issues/6327\n\nThe problem can be worked around by disabling the sandbox, i.e. use the\nlocal strategy:\n\nbuild --spawn_strategy=local\n\nBazel does not consider the strategy as part of its cache key, so you may\nneed to clean the cache or change the source file to see this take effect.\nDebugging then works in CLion.\n\nThe root cause is probably that nearly all Google developers work on Linux.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foasisdigital%2Fbazel-c-cpp-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foasisdigital%2Fbazel-c-cpp-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foasisdigital%2Fbazel-c-cpp-example/lists"}