Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/hyperlight_host/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ fn main() -> Result<()> {

// Note: When we build hyperlight_surrogate.exe CARGO_TARGET_DIR cannot
// be the same as the CARGO_TARGET_DIR for the hyperlight-host otherwise
// the build script will hang. Using a sub directory works tho!
// the build script will hang. Keep the separate target directory inside
// OUT_DIR so dependency caches preserve it with the build-script output.
// xref - https://github.com/rust-lang/cargo/issues/6412
let target_dir = out_path.join("../../hls");
let target_dir = out_path.join("hls");

let profile = std::env::var("PROFILE")?;
let build_profile = if profile.to_lowercase() == "debug" {
Expand Down
Loading