diff options
| author | Bernard Xiong <[email protected]> | 2018-06-07 16:57:24 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-06-07 16:57:24 +0800 |
| commit | dd6acd256ce6055563a3bfaeb71185cf13a093e0 (patch) | |
| tree | 5fefb1c80b3a63511d1714a1f3188d016ba388e4 | |
| parent | 512c69fdc9b511352a903f671b54ce59b9d1a1af (diff) | |
| parent | 1c37c813b59ee832102be36af6e5e3025d2541f1 (diff) | |
Merge pull request #1509 from armink/fix_scons
[WIP] [tools][scons] Add error notice when 'EXEC_PATH' is not exist.
| -rw-r--r-- | tools/building.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/building.py b/tools/building.py index 31dc4dae1d..8ddacaa29e 100644 --- a/tools/building.py +++ b/tools/building.py @@ -130,6 +130,9 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [ sys.path = sys.path + [os.path.join(Rtt_Root, 'tools')] + if not os.path.exists(rtconfig.EXEC_PATH): + print "Error: Toolchain path (%s) is not exist, please check 'EXEC_PATH' in path or rtconfig.py." % rtconfig.EXEC_PATH + sys.exit(1) # add compability with Keil MDK 4.6 which changes the directory of armcc.exe if rtconfig.PLATFORM == 'armcc': if not os.path.isfile(os.path.join(rtconfig.EXEC_PATH, 'armcc.exe')): |
