From b67d425f09d524a587f4c10a233c6f3b4c3b61b3 Mon Sep 17 00:00:00 2001 From: Mihail Stoyanov Date: Mon, 27 Jun 2016 23:20:05 +0100 Subject: [PATCH] Add MBED_ prefix to compilers environment variables --- tools/settings.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/settings.py b/tools/settings.py index b39aaf2339..5103aca060 100644 --- a/tools/settings.py +++ b/tools/settings.py @@ -69,11 +69,11 @@ except ImportError: _ENV_PATHS = ['ARM_PATH', 'GCC_ARM_PATH', 'GCC_CR_PATH', 'IAR_PATH'] for _n in _ENV_PATHS: - if getenv(_n): - if exists(getenv(_n)): - globals()[_n] = getenv(_n) + if getenv('MBED_'+_n): + if exists(getenv('MBED_'+_n)): + globals()[_n] = getenv('MBED_'+_n) else: - print "WARNING: %s set as environment variable but doesn't exist" % _n + print "WARNING: MBED_%s set as environment variable but doesn't exist" % _n ##############################################################################