Skip to content

Commit 96bce36

Browse files
CYFS3Rbb666
authored andcommitted
[tools][cmake]:Fix the cmake creation error of scons
1 parent bd22f2f commit 96bce36

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tools/targets/cmake.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ def GenerateCFiles(env, project, project_name):
6262
OBJCOPY = tool_path_conv["CMAKE_OBJCOPY"]["path"]
6363
FROMELF = tool_path_conv["CMAKE_FROMELF"]["path"]
6464

65-
CFLAGS = env['CFLAGS'].replace('\\', "/").replace('\"', "\\\"")
65+
CFLAGS = "".join(env['CFLAGS'])
66+
CFLAGS = CFLAGS.replace('\\', "/").replace('\"', "\\\"")
6667
if 'CXXFLAGS' in dir(rtconfig):
6768
cflag_str=''.join(env['CXXFLAGS'])
6869
CXXFLAGS = cflag_str.replace('\\', "/").replace('\"', "\\\"")

0 commit comments

Comments
 (0)