Skip to content

Commit

Permalink
Merge pull request #2365 from alexcrichton/fix-rustflags-for-native
Browse files Browse the repository at this point in the history
Fix build when RUSTFLAGS is set for native builds
  • Loading branch information
alexcrichton authored Mar 15, 2024
2 parents 35c92cb + e11b82a commit fd3d660
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ use cargo_target_dep::build_target_dep;
const TIMER_TRIGGER_INTEGRATION_TEST: &str = "examples/spin-timer/app-example";

fn main() {
// Don't inherit flags from our own invocation of cargo into sub-invocations
// since the flags are intended for the host and we're compiling for wasm.
std::env::remove_var("CARGO_ENCODED_RUSTFLAGS");

// Extract environment information to be passed to plugins.
// Git information will be set to defaults if Spin is not
// built within a Git worktree.
Expand Down

0 comments on commit fd3d660

Please sign in to comment.