Add debugging task for VS Code

This allows you to launch the command line program into a debugger. This
commit also tweaks the CI and fixes a small error in the build script.
This commit is contained in:
Conrad Kramer 2023-04-16 16:49:15 -04:00
parent 02efa85a19
commit b37086e8f6
6 changed files with 38 additions and 21 deletions

View file

@ -46,7 +46,7 @@ async fn main() -> anyhow::Result<()> {
bindings.write_to_file(out_dir.join("wintun.rs"))?;
let mut library = Vec::new();
let platform = platforms::Platform::find(&env::var("TARGET")?).unwrap();
let platform = platforms::Platform::find(&std::env::var("TARGET")?).unwrap();
let arch = match platform.target_arch {
platforms::target::Arch::Arm => "arm",
platforms::Arch::AArch64 => "arm64",