Skip to content

Commit

Permalink
fix: Don't panic on Windows is GITHUB_WORKFLOW is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Aug 28, 2024
1 parent a793d4a commit aefc56b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neqo-crypto/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fn is_debug() -> bool {
// Rather than download the 400Mb+ files, like gecko does, let's just reuse their work.
fn setup_clang() {
// If this isn't Windows, or we're in CI, then we don't need to do anything.
if env::consts::OS != "windows" || env::var("GITHUB_WORKFLOW").unwrap() == "CI" {
if env::consts::OS != "windows" || env::var("GITHUB_WORKFLOW").unwrap_or_default() == "CI" {
return;
}
println!("rerun-if-env-changed=LIBCLANG_PATH");
Expand Down

0 comments on commit aefc56b

Please sign in to comment.