From 9b01455188b07711a2f061d589aeb9079553632a Mon Sep 17 00:00:00 2001 From: Victor Oliveira Date: Tue, 28 Jun 2022 21:09:28 -0300 Subject: [PATCH] Allow set compiler env variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When we have multiples compilers, we need a way to set it using env vars and pio should respect it. I can’t see any drawback, as users just have these env var set when they explicit want to use an specific compiler. I usually set these env var in a pre script too. --- builder/main.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/builder/main.py b/builder/main.py index 40036cf..411bf78 100644 --- a/builder/main.py +++ b/builder/main.py @@ -20,11 +20,6 @@ env = DefaultEnvironment() -# Remove generic C/C++ tools -for k in ("CC", "CXX"): - if k in env: - del env[k] - # Preserve C and C++ build flags backup_cflags = env.get("CFLAGS", []) backup_cxxflags = env.get("CXXFLAGS", [])