Tasmota/pio-tools/strip-floats.py

15 lines
262 B
Python
Raw Normal View History

2018-02-03 15:36:25 +00:00
Import('env')
#
# Dump build environment (for debug)
#print env.Dump()
#
flags = " ".join(env['LINKFLAGS'])
flags = flags.replace("-u _printf_float", "")
flags = flags.replace("-u _scanf_float", "")
newflags = flags.split()
env.Replace(
LINKFLAGS=newflags
)