mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-05 15:23:03 +08:00
[tools][cmake]:Fix the cmake creation error of scons
This commit is contained in:
@@ -62,7 +62,8 @@ def GenerateCFiles(env, project, project_name):
|
||||
OBJCOPY = tool_path_conv["CMAKE_OBJCOPY"]["path"]
|
||||
FROMELF = tool_path_conv["CMAKE_FROMELF"]["path"]
|
||||
|
||||
CFLAGS = env['CFLAGS'].replace('\\', "/").replace('\"', "\\\"")
|
||||
CFLAGS = "".join(env['CFLAGS'])
|
||||
CFLAGS = CFLAGS.replace('\\', "/").replace('\"', "\\\"")
|
||||
if 'CXXFLAGS' in dir(rtconfig):
|
||||
cflag_str=''.join(env['CXXFLAGS'])
|
||||
CXXFLAGS = cflag_str.replace('\\', "/").replace('\"', "\\\"")
|
||||
|
||||
Reference in New Issue
Block a user