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
This commit is contained in:
keeping passionate! 2025-04-14 07:32:53 +08:00 committed by GitHub
parent 86df886c7f
commit 7c39352f4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,8 @@ def GenerateCFiles(env, project, project_name):
CFLAGS = env['CFLAGS'].replace('\\', "/").replace('\"', "\\\"")
if 'CXXFLAGS' in dir(rtconfig):
CXXFLAGS = env['CXXFLAGS'].replace('\\', "/").replace('\"', "\\\"")
cflag_str=''.join(env['CXXFLAGS'])
CXXFLAGS = cflag_str.replace('\\', "/").replace('\"', "\\\"")
else:
CXXFLAGS = CFLAGS
AFLAGS = env['ASFLAGS'].replace('\\', "/").replace('\"', "\\\"")