Tools: on esp32 force constants to single-precision like chibios port does.

This commit is contained in:
David Buzz 2023-05-02 09:53:22 +10:00 committed by Peter Barker
parent 775f12387c
commit f1af8bae0d

View File

@ -841,6 +841,7 @@ class esp32(Board):
env.CFLAGS += [
'-fno-inline-functions',
'-mlongcalls',
'-fsingle-precision-constant',
]
env.CFLAGS.remove('-Werror=undef')
@ -856,6 +857,8 @@ class esp32(Board):
'-Wno-sign-compare',
'-fno-inline-functions',
'-mlongcalls',
'-fsingle-precision-constant', # force const vals to be float , not double. so 100.0 means 100.0f
'-fno-threadsafe-statics',
'-DCYGWIN_BUILD']
env.CXXFLAGS.remove('-Werror=undef')
env.CXXFLAGS.remove('-Werror=shadow')