提交 18692c29 编写于 作者: G Grissiom

simulator: get CROSS_TOOL and EXEC_PATH from env

Simulator get it's way to Travis CI ready.
上级 c6e81b58
import os
# toolchains options # toolchains options
ARCH='sim' ARCH='sim'
#CROSS_TOOL='msvc' or 'gcc' or 'mingw' #CROSS_TOOL='msvc' or 'gcc' or 'mingw'
...@@ -5,6 +7,9 @@ ARCH='sim' ...@@ -5,6 +7,9 @@ ARCH='sim'
# 'gcc' is for linux # 'gcc' is for linux
CROSS_TOOL='msvc' CROSS_TOOL='msvc'
if os.getenv('RTT_CC'):
CROSS_TOOL = os.getenv('RTT_CC')
# cross_tool provides the cross compiler # cross_tool provides the cross compiler
# EXEC_PATH is the compiler execute path # EXEC_PATH is the compiler execute path
if CROSS_TOOL == 'gcc': if CROSS_TOOL == 'gcc':
...@@ -26,6 +31,9 @@ else : ...@@ -26,6 +31,9 @@ else :
print "bad CROSS TOOL!" print "bad CROSS TOOL!"
exit(1) exit(1)
if os.getenv('RTT_EXEC_PATH'):
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
BUILD = 'debug' BUILD = 'debug'
#BUILD = '' #BUILD = ''
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册