Skip to content

Commit

Permalink
fix: canonical vs tools dir
Browse files Browse the repository at this point in the history
* in some cases the vs tools dir had a trailing slash. i decided to fix it by getting the canoncial path so any future vswhere changes don't affect this
  • Loading branch information
zaucy committed Sep 1, 2024
1 parent f071d6c commit 8e013eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.cpp2
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ generate_cpp2b_build_module: () = {
}

get_vs_tools_dir: () -> fs::path = {
return cpp2b::env::get_var("VCToolsInstallDir").expect("missing 'VCToolsInstallDir' environment variable");
return cpp2b::env::get_var("VCToolsInstallDir")
.expect("missing 'VCToolsInstallDir' environment variable")
.fs::canonical();
}

get_libcxx_build_root: () -> fs::path = {
Expand Down

0 comments on commit 8e013eb

Please sign in to comment.