-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustc_llvm: re-run build script if config.toml changes #42429
Conversation
r? @pnkfelix (rust_highfive has picked a reviewer for you, use r? to override) |
Looks good to me, but r? @alexcrichton |
FYI, after this change, the
|
Hm, that's somewhat unfortunate -- but presumably it compiles fairly quickly? If not, we may want to reconsider this change, though I guess modifying config.toml is a somewhat rare occurence. |
Thanks for the PR @venkatagiri! @Mark-Simulacrum it's true yeah that this is a bit too coarse wrt when to rebuild things, but I think this is a good "next step" to fixing bugs in rustbuild. Want to file a follow-up issue about reducing the rebuilding granularity here? In the meantime though this looks great for solving the issue at hand, so I'll.... @bors: r+ |
📌 Commit 40f8536 has been approved by |
…hton rustc_llvm: re-run build script if config.toml changes closes rust-lang#35199
@alexcrichton any ideas/suggestions on how to restrict the re-run to just |
@venkatagiri ideally this'll be fixed through a mechanism such as rust-lang/cargo#4125, so we may want to just wait for that PR to land and then update the build script here. |
…hton rustc_llvm: re-run build script if config.toml changes closes rust-lang#35199
…ulacrum rustc_llvm: re-run build script when env var LLVM_CONFIG changes This removes the changes done in rust-lang#42429 and use the newly introduced `cargo:rerun-if-env-changed` in rust-lang/cargo#4125. As `LLVM_CONFIG` env var points to the `llvm-config` and changes when it gets configured in `config.toml` or removed from it, we can re-run the build script if this env var changes. closes rust-lang#42444 r? @alexcrichton
…ulacrum rustc_llvm: re-run build script when env var LLVM_CONFIG changes This removes the changes done in rust-lang#42429 and use the newly introduced `cargo:rerun-if-env-changed` in rust-lang/cargo#4125. As `LLVM_CONFIG` env var points to the `llvm-config` and changes when it gets configured in `config.toml` or removed from it, we can re-run the build script if this env var changes. closes rust-lang#42444 r? @alexcrichton
…ulacrum rustc_llvm: re-run build script when env var LLVM_CONFIG changes This removes the changes done in rust-lang#42429 and use the newly introduced `cargo:rerun-if-env-changed` in rust-lang/cargo#4125. As `LLVM_CONFIG` env var points to the `llvm-config` and changes when it gets configured in `config.toml` or removed from it, we can re-run the build script if this env var changes. closes rust-lang#42444 r? @alexcrichton
closes #35199