解决 HC32L196 scons编译问题
This commit is contained in:
parent
55d3011f95
commit
38bd06cc17
|
@ -2,7 +2,6 @@ import os
|
||||||
import sys
|
import sys
|
||||||
import rtconfig
|
import rtconfig
|
||||||
|
|
||||||
print "############sconstruct##############"
|
|
||||||
if os.getenv('RTT_ROOT'):
|
if os.getenv('RTT_ROOT'):
|
||||||
RTT_ROOT = os.getenv('RTT_ROOT')
|
RTT_ROOT = os.getenv('RTT_ROOT')
|
||||||
else:
|
else:
|
||||||
|
@ -38,8 +37,6 @@ Export('RTT_ROOT')
|
||||||
Export('rtconfig')
|
Export('rtconfig')
|
||||||
|
|
||||||
# prepare building environment
|
# prepare building environment
|
||||||
print "######################env:"
|
|
||||||
print env
|
|
||||||
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
|
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
|
||||||
|
|
||||||
# make a building
|
# make a building
|
||||||
|
|
|
@ -89,7 +89,6 @@ elif PLATFORM == 'armcc':
|
||||||
CFLAGS += ' -O2'
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
CXXFLAGS = CFLAGS
|
CXXFLAGS = CFLAGS
|
||||||
CFLAGS += ' -std=c99'
|
|
||||||
|
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue