aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src
diff options
context:
space:
mode:
Diffstat (limited to 'toolsrc/src')
-rw-r--r--toolsrc/src/vcpkg/base/system.cpp19
-rw-r--r--toolsrc/src/vcpkg/build.cpp11
2 files changed, 7 insertions, 23 deletions
diff --git a/toolsrc/src/vcpkg/base/system.cpp b/toolsrc/src/vcpkg/base/system.cpp
index 800a0a23b..cbb50fe27 100644
--- a/toolsrc/src/vcpkg/base/system.cpp
+++ b/toolsrc/src/vcpkg/base/system.cpp
@@ -160,25 +160,6 @@ namespace vcpkg
return s_home;
}
#else
- static const ExpectedS<fs::path>& get_xdg_config_home() noexcept
- {
- static ExpectedS<fs::path> s_home = [] {
- auto maybe_home = System::get_environment_variable("XDG_CONFIG_HOME");
- if (auto p = maybe_home.get())
- {
- return ExpectedS<fs::path>(fs::u8path(*p));
- }
- else
- {
- return System::get_home_dir().map([](fs::path home) {
- home /= fs::u8path(".config");
- return home;
- });
- }
- }();
- return s_home;
- }
-
static const ExpectedS<fs::path>& get_xdg_cache_home() noexcept
{
static ExpectedS<fs::path> s_home = [] {
diff --git a/toolsrc/src/vcpkg/build.cpp b/toolsrc/src/vcpkg/build.cpp
index 92dedd8db..2eb188cc1 100644
--- a/toolsrc/src/vcpkg/build.cpp
+++ b/toolsrc/src/vcpkg/build.cpp
@@ -88,7 +88,7 @@ namespace vcpkg::Build
{
auto var_provider_storage = CMakeVars::make_triplet_cmake_var_provider(paths);
auto& var_provider = *var_provider_storage;
- var_provider.load_dep_info_vars(std::array<PackageSpec, 1>{full_spec.package_spec});
+ var_provider.load_dep_info_vars({{full_spec.package_spec}});
StatusParagraphs status_db = database_load_check(paths);
@@ -301,9 +301,9 @@ namespace vcpkg::Build
}));
}
+#if defined(_WIN32)
const System::Environment& EnvCache::get_action_env(const VcpkgPaths& paths, const AbiInfo& abi_info)
{
-#if defined(_WIN32)
std::string build_env_cmd =
make_build_env_cmd(*abi_info.pre_build_info, abi_info.toolset.value_or_exit(VCPKG_LINE_INFO));
@@ -339,10 +339,13 @@ namespace vcpkg::Build
else
return System::cmd_execute_modify_env(build_env_cmd, clean_env);
});
+ }
#else
+ const System::Environment& EnvCache::get_action_env(const VcpkgPaths&, const AbiInfo&)
+ {
return System::get_clean_environment();
-#endif
}
+#endif
static std::string load_compiler_hash(const VcpkgPaths& paths, const AbiInfo& abi_info);
@@ -523,7 +526,7 @@ namespace vcpkg::Build
}
Checks::check_exit(VCPKG_LINE_INFO,
!compiler_hash.empty(),
- "Error occured while detecting compiler information. Pass `--debug` for more information.");
+ "Error occurred while detecting compiler information. Pass `--debug` for more information.");
Debug::print("Detecting compiler hash for triplet ", triplet, ": ", compiler_hash, "\n");
return compiler_hash;