{"id":37389754,"url":"https://github.com/nathan818fr/vcvars-bash","last_synced_at":"2026-01-16T05:28:12.981Z","repository":{"id":209589629,"uuid":"723980603","full_name":"nathan818fr/vcvars-bash","owner":"nathan818fr","description":"Use the Microsoft C++ toolset from Bash (vcvarsall.bat -\u003e vcvarsall.sh)","archived":false,"fork":false,"pushed_at":"2025-07-09T12:24:36.000Z","size":14,"stargazers_count":32,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-12T05:52:59.298Z","etag":null,"topics":["gitbash","msvc","msys2","vcvars","vcvarsall","wsl"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nathan818fr.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}},"created_at":"2023-11-27T06:38:25.000Z","updated_at":"2025-09-22T02:19:38.000Z","dependencies_parsed_at":"2023-11-28T07:24:23.236Z","dependency_job_id":"44ba142b-0a44-43b6-a777-6449b5a273e8","html_url":"https://github.com/nathan818fr/vcvars-bash","commit_stats":null,"previous_names":["nathan818fr/vcvars-bash"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nathan818fr/vcvars-bash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathan818fr%2Fvcvars-bash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathan818fr%2Fvcvars-bash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathan818fr%2Fvcvars-bash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathan818fr%2Fvcvars-bash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nathan818fr","download_url":"https://codeload.github.com/nathan818fr/vcvars-bash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathan818fr%2Fvcvars-bash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477250,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"last_error":"SSL_read: 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":["gitbash","msvc","msys2","vcvars","vcvarsall","wsl"],"created_at":"2026-01-16T05:28:12.389Z","updated_at":"2026-01-16T05:28:12.955Z","avatar_url":"https://github.com/nathan818fr.png","language":"Shell","readme":"# vcvars-bash\n\nUse the Microsoft C++ toolset from Bash!\n\n## vcvarsall.sh\n\nThis script load MSVC environment variables using `vcvarsall.bat` and exports\nthem.\nIt is intended to be evaluated (by Bash or any other POSIX-compatible shell,\nsince it writes a list of export commands to stdout).\n\nUsage: `eval \"$(vcvarsall.sh [vcvarsall.bat arguments])\"`\n\nSee [Microsoft vcvarsall.bat syntax][1] for vcvarsall.bat arguments\ndocumentation.\n\nExample:\n```bash\neval \"$(./vcvarsall.sh x64)\"\ncmake -S ..  -B build -G \"NMake Makefiles\"\ncmake --build build --config Release\n```\n\n## vcvarsrun.sh\n\nLike `vcvarsall.sh`, but runs a command instead of exporting variables.\n\nUsage: `vcvarsrun.sh [vcvarsall.bat arguments] -- command [arguments...]`\n\nExample:\n```bash\n./vcvarsrun.sh x64 -- cl /nologo /EHsc /Fe:hello.exe hello.cpp\n./vcvarsrun.sh x64 -- ./my_build_script.sh\n```\n\n## Compatibility\n\nThese scripts are designed to run on Windows with Bash.\nThey work with:\n- Git Bash\n- WSL\n- MSYS2\n- Cygwin\n\n## Configuration (optional)\n\nTo work, these scripts must locate `vcvarsall.bat`.\\\nBy default, it uses `vswhere.exe` (installed with Visual Studio) to\nautomatically find the latest Visual Studio installation.\\\nYou can override this behavior by setting the `VSINSTALLDIR` environment\nvariable (e.g.\n`VSINSTALLDIR='C:\\Program Files\\Microsoft Visual Studio\\2022\\Community'`).\n\n\n[1]: https://learn.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=msvc-170#vcvarsall-syntax\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathan818fr%2Fvcvars-bash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathan818fr%2Fvcvars-bash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathan818fr%2Fvcvars-bash/lists"}