From d142de77576ddab4cad746ffcbc4d6cf65c141b5 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Sun, 29 Jan 2023 03:11:20 -0500 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81keil=20AC5=E4=B8=8B=E9=80=89?= =?UTF-8?q?=E4=B8=AD=E5=85=A8=E5=B1=80GNU=E6=89=A9=E5=B1=95=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SConscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SConscript b/SConscript index 1abf81b..5550ef2 100644 --- a/SConscript +++ b/SConscript @@ -1,5 +1,6 @@ Import('rtconfig') from building import * +import os import shutil src = ['perf_counter.c', 'os/perf_os_patch_rt_thread.c'] @@ -20,6 +21,6 @@ try: except: pass -group = DefineGroup('perf_counter', src, depend = ['PKG_USING_PERF_COUNTER'], CPPDEFINES = CPPDEFINES, CPPPATH = path) +group = DefineGroup('perf_counter', src, depend = ['PKG_USING_PERF_COUNTER'], CPPDEFINES = CPPDEFINES, CPPPATH = path, CXXFLAGS = ' --gnu') Return('group')