reuse fetching target data layout from rustc function

This commit is contained in:
hkalbasi 2023-02-06 23:48:20 +03:30
parent 443bc7f193
commit 40cf8b45ac
5 changed files with 12 additions and 20 deletions

View file

@ -25,7 +25,7 @@ mod sysroot;
mod workspace;
mod rustc_cfg;
mod build_scripts;
mod target_data_layout;
pub mod target_data_layout;
#[cfg(test)]
mod tests;

View file

@ -6,7 +6,7 @@ use rustc_hash::FxHashMap;
use crate::{utf8_stdout, ManifestPath};
pub(super) fn get(
pub fn get(
cargo_toml: Option<&ManifestPath>,
target: Option<&str>,
extra_env: &FxHashMap<String, String>,