From 483cf44efe208877d16bd4653cd244b627b93c1b Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Fri, 23 Apr 2021 20:11:24 -0700 Subject: [PATCH] [Rootfs] Teach testsuite to be less headstrong about `CC`, `CXX` etc... The testsuite should do what the comment says; it should not assume values for `CC`, `CXX`, etc... this manifested as an incorrectly-set `RUSTC`, which should not have been a problem in the first place, but still is sub-optimal --- 0_RootFS/Rootfs/bundled/testsuite/common.mk | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/0_RootFS/Rootfs/bundled/testsuite/common.mk b/0_RootFS/Rootfs/bundled/testsuite/common.mk index 667528def31..e33002b2e05 100644 --- a/0_RootFS/Rootfs/bundled/testsuite/common.mk +++ b/0_RootFS/Rootfs/bundled/testsuite/common.mk @@ -55,11 +55,11 @@ PROJECT_BUILD := $(BUILD_ROOT)/$(target)/$(PROJECT_REL_DIR) # Define some compiler defaults (they are typically overridden by `export`'ed # variables in the BB shell) -CC := $(target)-cc -CXX := $(target)-c++ -FC := $(target)-f77 -GO := $(target)-go -RUSTC := $(target)-rustc +CC ?= $(target)-cc +CXX ?= $(target)-c++ +FC ?= $(target)-f77 +GO ?= $(target)-go +RUSTC ?= $(target)-rustc # Create default rule for that directory so it can be created, if need be: $(PROJECT_BUILD):