{"id":24904960,"url":"https://github.com/sjoerdev/cpp-guide-toolchain","last_synced_at":"2025-07-25T22:34:50.207Z","repository":{"id":274346572,"uuid":"922631499","full_name":"sjoerdev/cpp-guide-toolchain","owner":"sjoerdev","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-02T12:47:21.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T21:34:02.716Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sjoerdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-01-26T18:01:29.000Z","updated_at":"2025-02-02T12:47:25.000Z","dependencies_parsed_at":"2025-02-01T23:46:06.683Z","dependency_job_id":null,"html_url":"https://github.com/sjoerdev/cpp-guide-toolchain","commit_stats":null,"previous_names":["sjoerdev/setup-xmake-opengl-vscode","sjoerdev/cpp-guide-toolchain"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sjoerdev/cpp-guide-toolchain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjoerdev%2Fcpp-guide-toolchain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjoerdev%2Fcpp-guide-toolchain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjoerdev%2Fcpp-guide-toolchain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjoerdev%2Fcpp-guide-toolchain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjoerdev","download_url":"https://codeload.github.com/sjoerdev/cpp-guide-toolchain/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjoerdev%2Fcpp-guide-toolchain/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267072991,"owners_count":24031494,"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","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2025-02-01T23:46:08.468Z","updated_at":"2025-07-25T22:34:50.122Z","avatar_url":"https://github.com/sjoerdev.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## Setup Compilers\n\n**MSVC:**\n\n1. Download the [Microsoft C++ Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/)\n2. Select the ``Desktop development with C++`` workload\n3. Select the ``MSVC Build Tools`` and the ``Windows SDK``\n\n**Clang:**\n1. Go to the [llvm downloads](https://github.com/llvm/llvm-project/releases) on github\n2. Download the ``LLVM-X.X.X-win64.exe`` windows installer file\n3. Run the installer and choose ``Add LLVM to the system PATH for all users`` when prompted\n\n## Setup Build Systems\n\n**XMake:**\n\n1. Run ``winget install xmake`` in the terminal\n2. Check installation with ``xmake --version`` in the terminal\n\n**Cmake:**\n\n1. Run ``winget install cmake`` in the terminal\n2. Check installation with ``cmake --verion`` in the terminal\n\n## Setup Visual Studio Code\n\n**C++ Extension:**\n\n1. Install the [Microsoft C++ Extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools) for vscode\n\n**XMake Compile Commands:**\n\n1. Generate ``.vscode/compile_commands.json`` by running ``xmake project -k compile_commands .vscode``\n2. For automatic updates add this line to your xmake file ``add_rules(\"plugin.compile_commands.autoupdate\", { outputdir = \".vscode\" })``\n3. Now add the ``.vscode/compile_commands.json`` to your ``.gitignore`` file\n4. Create a file called ``.vscode/c_cpp_properties.json`` with this json:\n```json\n{\n    \"version\": 4,\n    \"configurations\":\n    [\n        {\n            \"name\": \"build_compile_commands\",\n            \"compileCommands\": \".vscode/compile_commands.json\"\n        }\n    ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjoerdev%2Fcpp-guide-toolchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjoerdev%2Fcpp-guide-toolchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjoerdev%2Fcpp-guide-toolchain/lists"}