only support in Keil AC5
This commit is contained in:
Meco Man 2023-01-31 23:09:41 -05:00
parent d1c1e42b89
commit e288cef372

View File

@ -21,6 +21,11 @@ try:
except:
pass
group = DefineGroup('perf_counter', src, depend = ['PKG_USING_PERF_COUNTER'], CPPDEFINES = CPPDEFINES, CPPPATH = path, CXXFLAGS = ' --gnu')
CXXFLAGS = ''
if rtconfig.PLATFORM == 'armcc': # Keil AC5
CXXFLAGS += ' --gnu'
group = DefineGroup('perf_counter', src, depend = ['PKG_USING_PERF_COUNTER'], CPPDEFINES = CPPDEFINES, CPPPATH = path, CXXFLAGS = CXXFLAGS)
Return('group')