Skip to content

Commit

Permalink
Set GOCACHE under OUT_DIR (#603)
Browse files Browse the repository at this point in the history
* Set GOCACHE under OUT_DIR

* PR feedback
  • Loading branch information
justsmth authored Nov 19, 2024
1 parent bee27e4 commit c236deb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions aws-lc-fips-sys/builder/cmake_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,14 @@ impl CmakeBuilder {
cmake::Config::new(&self.manifest_dir)
}

const GOCACHE_DIR_NAME: &'static str = "go-cache";
#[allow(clippy::too_many_lines)]
fn prepare_cmake_build(&self) -> cmake::Config {
env::set_var(
"GOCACHE",
self.out_dir.join(Self::GOCACHE_DIR_NAME).as_os_str(),
);

let mut cmake_cfg = self.get_cmake_config();

if OutputLibType::default() == OutputLibType::Dynamic {
Expand Down

0 comments on commit c236deb

Please sign in to comment.