From 94fd78d4921a8cdfb3ab9415f56c10156ebc413d Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Thu, 17 Feb 2022 15:32:35 +0100 Subject: [PATCH] Remove CFG_PLATFORM It seems to be unused and it is incorrect for arm/aarch64 anyway. --- src/bootstrap/dist.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index 472ee3fb01474..b6e87a6fd28c3 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -1875,12 +1875,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.