-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Rebuild if deployment target changes #118204
Copy link
Copy link
Open
Labels
C-bugCategory: This is a bug.Category: This is a bug.O-iosOperating system: iOSOperating system: iOSO-macosOperating system: macOSOperating system: macOSO-tvosOperating system: tvOS (including simulator)Operating system: tvOS (including simulator)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.O-iosOperating system: iOSOperating system: iOSO-macosOperating system: macOSOperating system: macOSO-tvosOperating system: tvOS (including simulator)Operating system: tvOS (including simulator)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
rustcreads theMACOSX_DEPLOYMENT_TARGETenvironment variable (and similar other*_DEPLOYMENT_TARGETvariables), and uses that value to determine (probably amongst other things) certain options for LLVM and the linker.However, it seems like this environment variable is not tracked as an external dependency, meaning that changing it does not cause
rustc/cargoto rebuild the target, as is otherwise expected when changing environment variables that modify compilation.E.g. running the following code:
I expected to see this happen: The project was built twice.
Instead, this happened: The project was built once, and then the cache was used the second time.
Meta
rustc --version --verbose: