mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 22:59:02 +08:00
* [vcpkg] fix ci #13790 * add extra space * needs ""
This commit is contained in:
parent
4dc9ecd32b
commit
c146787fd3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user