diff options
| author | keeping passionate! <[email protected]> | 2025-04-14 07:32:53 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-14 07:32:53 +0800 |
| commit | 7c39352f4c31aedf63f2fc63ba9c53f8639f029b (patch) | |
| tree | 85ba598e5080aa3418f2819015c5d1e8f30cce04 | |
| parent | 86df886c7fc7a2492f25672c460576bf3170c979 (diff) | |
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
| -rw-r--r-- | tools/cmake.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/cmake.py b/tools/cmake.py index 9a9affad48..7f7c26eb6c 100644 --- a/tools/cmake.py +++ b/tools/cmake.py @@ -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('\"', "\\\"") |
