Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paths in PrebuildInfo should be Path instead of std::string #1366

Merged
merged 5 commits into from Mar 25, 2024

Conversation

Thomas1664
Copy link
Contributor

@Thomas1664 Thomas1664 commented Mar 21, 2024

  • Store files as vector of Path right away.
    This is semantically more correct and saves extra string copies.
  • Turn external_toolchain_file into a Path
  • Drive by: Don't leak i outside the loop

@Neumann-A
Copy link
Contributor

Optional<std::string> external_toolchain_file; should probably also be a path

@Thomas1664 Thomas1664 changed the title Improve "Hash additional files" Paths in PrebuildInfo should be Path instead of std::string Mar 21, 2024
Thomas1664 and others added 2 commits March 22, 2024 00:23
Co-authored-by: autoantwort <41973254+autoantwort@users.noreply.github.com>
src/vcpkg/commands.build.cpp Outdated Show resolved Hide resolved
@BillyONeal BillyONeal merged commit de85ec9 into microsoft:main Mar 25, 2024
5 checks passed
@BillyONeal
Copy link
Member

Thanks!

@Thomas1664 Thomas1664 deleted the hash-additional-files branch March 26, 2024 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants