
The deployment target environment variable is OS-specific, and if you're in a place where you're asking `rustc` for the deployment target, you're likely to also wanna know the environment variable.
8 lines
295 B
Rust
8 lines
295 B
Rust
//@ only-apple
|
|
//@ compile-flags: --print deployment-target
|
|
//@ normalize-stdout-test: "\w*_DEPLOYMENT_TARGET" -> "$$OS_DEPLOYMENT_TARGET"
|
|
//@ normalize-stdout-test: "\d+\." -> "$$CURRENT_MAJOR_VERSION."
|
|
//@ normalize-stdout-test: "\d+" -> "$$CURRENT_MINOR_VERSION"
|
|
//@ check-pass
|
|
|
|
fn main() {}
|