From 21055cdf83908c8bd14f607fab50030b5e349ca0 Mon Sep 17 00:00:00 2001 From: LittleMouse Date: Fri, 28 Mar 2025 17:39:04 +0800 Subject: [PATCH] [update] Enable compilation optimization to O2 --- projects/llm_framework/main_llm/SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/llm_framework/main_llm/SConstruct b/projects/llm_framework/main_llm/SConstruct index 2170851..e744507 100644 --- a/projects/llm_framework/main_llm/SConstruct +++ b/projects/llm_framework/main_llm/SConstruct @@ -24,7 +24,7 @@ STATIC_FILES = [] # AFile('../static_lib/liblzma.so.5'), # AFile('../static_lib/libbz2.so.1.0')] # DEFINITIONS += ["-DENABLE_BACKWARD"] - +DEFINITIONS += ['-O2'] DEFINITIONS += ['-std=c++17'] LDFLAGS+=['-Wl,-rpath=/opt/m5stack/lib', '-Wl,-rpath=/usr/local/m5stack/lib', '-Wl,-rpath=/usr/local/m5stack/lib/gcc-10.3', '-Wl,-rpath=/opt/lib', '-Wl,-rpath=/opt/usr/lib', '-Wl,-rpath=./'] REQUIREMENTS += ['ax_engine', 'ax_interpreter', 'ax_sys', 'utilities']