Add static vc runtime

This commit is contained in:
ByteDream 2022-11-30 19:25:21 +01:00
parent 6ecd23bcd0
commit 12d49a27e4
3 changed files with 9 additions and 3 deletions

View file

@ -3,6 +3,9 @@ use clap_complete::shells;
use std::path::{Path, PathBuf};
fn main() -> std::io::Result<()> {
#[cfg(all(windows, target_env = "msvc"))]
static_vcruntime::metabuild();
// note that we're using an anti-pattern here / violate the rust conventions. build script are
// not supposed to write outside of 'OUT_DIR'. to have the generated files in the build "root"
// (the same directory where the output binary lives) is much simpler than in 'OUT_DIR' since