Skip to content

Commit

Permalink
[nix] tweak vcs link
Browse files Browse the repository at this point in the history
  • Loading branch information
sequencer committed Jul 21, 2024
1 parent f73275a commit 639755f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions difftest/online_vcs/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ use std::env;

fn main() {
let vcs_lib_dir = env::var("VCS_LIB_DIR").unwrap();
println!("cargo:rustc-link-search=native={}", Path::new(&vcs_lib_dir).join("lib").display());
println!("cargo:rustc-link-search=native={}", Path::new(&vcs_lib_dir).display());
let vcs_compiled_lib_dir = env::var("VCS_COMPILED_LIB_DIR").unwrap();
println!("cargo:rustc-link-search=native={}", Path::new(&vcs_compiled_lib_dir).join("lib").display());
println!("cargo:rustc-link-search=native={}", Path::new(&vcs_compiled_lib_dir).display());
println!("cargo::rustc-link-lib=TestBench");
println!("cargo::rustc-link-lib=vcsnew");
}
2 changes: 1 addition & 1 deletion difftest/vcs-emu.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ let

env = {
VCS_LIB_DIR = "${vcStaticInstallPath}/vcs-mx/linux64/lib";
VCS_COMPILED_LIB_DIR = "${vcs-lib}";
VCS_COMPILED_LIB_DIR = "${vcs-lib}/lib";
DESIGN_VLEN = elaborateConfig.parameter.vLen;
DESIGN_DLEN = elaborateConfig.parameter.dLen;
};
Expand Down

0 comments on commit 639755f

Please sign in to comment.