[tools][cmake]:Fix the cmake creation error of scons

This commit is contained in:
CYFS
2026-01-06 15:53:36 +08:00
committed by R b b666
parent bd22f2fa6a
commit 96bce36533

View File

@@ -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('\"', "\\\"")