summaryrefslogtreecommitdiff
path: root/tools/cmake.py
diff options
context:
space:
mode:
authorthread-liu <[email protected]>2021-04-19 18:28:10 +0800
committerthread-liu <[email protected]>2021-04-19 18:31:35 +0800
commitf5d636626c9309e57449d06c83009dae3d0455e7 (patch)
tree9c0e8b8ed8fbcde5ab196f9af1c1ad690f71497b /tools/cmake.py
parent18ccf1d182366aca2eaa245307fe28b755e037e0 (diff)
[update] cmake.py, delete extra code.
Diffstat (limited to 'tools/cmake.py')
-rw-r--r--tools/cmake.py2
1 files changed, 1 insertions, 1 deletions
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")