diff options
| author | Alexander Neumann <30894796+Neumann-A@users.noreply.github.com> | 2020-09-28 22:58:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-28 13:58:55 -0700 |
| commit | c146787fd38796497324603ed2fd9b8fcab787fa (patch) | |
| tree | d5b1ff657c997988b05ca5f2efef0195d326f93f /toolsrc | |
| parent | 4dc9ecd32b972af1da00d7011f9b9822b4254ef7 (diff) | |
| download | vcpkg-c146787fd38796497324603ed2fd9b8fcab787fa.tar.gz vcpkg-c146787fd38796497324603ed2fd9b8fcab787fa.zip | |
[vcpkg] fix ci #13790 (#13794)
* [vcpkg] fix ci #13790
* add extra space
* needs ""
Diffstat (limited to 'toolsrc')
| -rw-r--r-- | toolsrc/src/vcpkg/base/files.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/toolsrc/src/vcpkg/base/files.cpp b/toolsrc/src/vcpkg/base/files.cpp index b06b625a5..2d82e1df1 100644 --- a/toolsrc/src/vcpkg/base/files.cpp +++ b/toolsrc/src/vcpkg/base/files.cpp @@ -1174,7 +1174,11 @@ namespace vcpkg::Files virtual std::vector<fs::path> find_from_PATH(const std::string& name) const override { +#if defined(_WIN32) static constexpr StringLiteral EXTS[] = {".cmd", ".exe", ".bat"}; +#else // ^^^ defined(_WIN32) // !defined(_WIN32) vvv + static constexpr StringLiteral EXTS[] = {""}; +#endif // ^^^!defined(_WIN32) auto paths = Strings::split_paths(System::get_environment_variable("PATH").value_or_exit(VCPKG_LINE_INFO)); std::vector<fs::path> ret; |
