Skip to content

Commit 7c39352

Browse files
authored
Fixed an error by running scons --tartget=cmake under LINUX, #10113 (#10164)
Fixed an error by running scons --tartget=cmake under LINUX, and associated issue #10113
1 parent 86df886 commit 7c39352

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)