Merge pull request #20 from mysterywolf/te

This commit is contained in:
Gabriel Wang 2023-02-02 13:17:21 +08:00 committed by GitHub
commit e94c7c9020
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,11 @@ try:
except: except:
pass 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') Return('group')