Skip to content

Commit 1ee9af8

Browse files
starry-m231220000-Xiang Zhiming
authored andcommitted
Fixed an error by running scons --tartget=cmake under LINUX, and associated issue #10113
1 parent 45eea78 commit 1ee9af8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/cmake.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ def GenerateCFiles(env, project, project_name):
6464

6565
CFLAGS = env['CFLAGS'].replace('\\', "/").replace('\"', "\\\"")
6666
if 'CXXFLAGS' in dir(rtconfig):
67-
CXXFLAGS = env['CXXFLAGS'].replace('\\', "/").replace('\"', "\\\"")
67+
cflag_str=''.join(env['CXXFLAGS'])
68+
CXXFLAGS = cflag_str.replace('\\', "/").replace('\"', "\\\"")
6869
else:
6970
CXXFLAGS = CFLAGS
7071
AFLAGS = env['ASFLAGS'].replace('\\', "/").replace('\"', "\\\"")

0 commit comments

Comments
 (0)