From f5d636626c9309e57449d06c83009dae3d0455e7 Mon Sep 17 00:00:00 2001 From: thread-liu Date: Mon, 19 Apr 2021 18:28:10 +0800 Subject: [PATCH] [update] cmake.py, delete extra code. --- tools/cmake.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cmake.py b/tools/cmake.py index 876c3985fe..645bdbb229 100644 --- a/tools/cmake.py +++ b/tools/cmake.py @@ -39,7 +39,7 @@ def GenerateCFiles(env,project): cm_file.write("SET(CMAKE_SIZE \""+ SIZE + "\")\n\n") - cm_file.write("SET(CMAKE_C_FLAGS \""+ rtconfig.CFLAGS + " -nostdlib\")\n") + cm_file.write("SET(CMAKE_C_FLAGS \""+ rtconfig.CFLAGS + "\")\n") cm_file.write("SET(CMAKE_CXX_FLAGS \""+ rtconfig.CXXFLAGS + "\")\n") cm_file.write("SET(CMAKE_ASM_FLAGS \""+ rtconfig.AFLAGS + "\")\n") cm_file.write("SET(CMAKE_EXE_LINKER_FLAGS \""+ re.sub('-T(\s*)', '-T ${CMAKE_SOURCE_DIR}/',rtconfig.LFLAGS) + "\")\n\n")