Skip to content

Commit

Permalink
NSS_PREBUILT
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Sep 17, 2024
1 parent 6a30d2f commit f15c066
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/actions/nss/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ runs:
echo "DYLD_FALLBACK_LIBRARY_PATH=$NSS_OUT/lib" >> "$GITHUB_ENV"
echo "$NSS_OUT/lib" >> "$GITHUB_PATH"
echo "NSS_DIR=$NSS_DIR" >> "$GITHUB_ENV"
echo "NSS_PREBUILT=1" >> "$GITHUB_ENV"
env:
NSS_DIR: ${{ github.workspace }}/nss
NSPR_DIR: ${{ github.workspace }}/nspr
Expand Down
5 changes: 4 additions & 1 deletion neqo-crypto/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,10 @@ fn setup_standalone(nss: &str) -> Vec<String> {
"The NSS_DIR environment variable is expected to be an absolute path."
);

build_nss(nss.clone());
// If NSS_PREBUILT is set, we assume that the NSS libraries are already built.
if env::var("NSS_PREBUILT").unwrap_or_default() != "1" {
build_nss(nss.clone());
}

// $NSS_DIR/../dist/
let nssdist = nss.parent().unwrap().join("dist");
Expand Down

0 comments on commit f15c066

Please sign in to comment.