Rollup merge of #94082 - bjorn3:remove_cfg_platform, r=Mark-Simulacrum

Remove CFG_PLATFORM

It seems to be unused and it is incorrect for arm/aarch64 anyway.
This commit is contained in:
Matthias Krüger 2022-02-17 23:01:02 +01:00 committed by GitHub
commit e1bf069482
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1877,12 +1877,6 @@ fn add_env(builder: &Builder<'_>, cmd: &mut Command, target: TargetSelection) {
} else {
cmd.env("CFG_MINGW", "0").env("CFG_ABI", "MSVC");
}
if target.contains("x86_64") {
cmd.env("CFG_PLATFORM", "x64");
} else {
cmd.env("CFG_PLATFORM", "x86");
}
}
/// Maybe add LLVM object files to the given destination lib-dir. Allows either static or dynamic linking.