xtask: put LAST_LANG at the target root and omit dir creation

This commit is contained in:
eupn 2023-03-05 13:59:50 +04:00
parent f347b46530
commit 058a42d9da
No known key found for this signature in database
GPG key ID: 0BBE77FB42014014

View file

@ -399,8 +399,7 @@ pub(crate) fn whycheproof_import() -> Result<(), crate::DynError> {
}
pub(crate) fn track_language_changes(last_lang: &str) -> Result<(), crate::DynError> {
let last_config = format!("target/{}/LAST_LANG", TARGET_TRIPLE_RISCV32);
std::fs::create_dir_all(format!("target/{}/", TARGET_TRIPLE_RISCV32)).unwrap();
let last_config = "target/LAST_LANG";
let mut contents = String::new();
let changed = match OpenOptions::new()