From e288cef372cad5298c14d4a0df527a5142b6cc71 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Tue, 31 Jan 2023 23:09:41 -0500 Subject: [PATCH] attach #19 only support in Keil AC5 --- SConscript | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SConscript b/SConscript index 5550ef2..121adfc 100644 --- a/SConscript +++ b/SConscript @@ -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')