simulator: get CROSS_TOOL and EXEC_PATH from env

Simulator get it's way to Travis CI ready.
This commit is contained in:
Grissiom 2013-09-06 21:54:27 +08:00
parent c6e81b58d9
commit 18692c29b8
1 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,5 @@
import os
# toolchains options
ARCH='sim'
#CROSS_TOOL='msvc' or 'gcc' or 'mingw'
@ -5,6 +7,9 @@ ARCH='sim'
# 'gcc' is for linux
CROSS_TOOL='msvc'
if os.getenv('RTT_CC'):
CROSS_TOOL = os.getenv('RTT_CC')
# cross_tool provides the cross compiler
# EXEC_PATH is the compiler execute path
if CROSS_TOOL == 'gcc':
@ -26,6 +31,9 @@ else :
print "bad CROSS TOOL!"
exit(1)
if os.getenv('RTT_EXEC_PATH'):
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
BUILD = 'debug'
#BUILD = ''