From ce913b95c779bf7422a9b0676e18f4608c17d47d Mon Sep 17 00:00:00 2001 From: Astrozen Date: Tue, 21 May 2024 08:58:26 +0800 Subject: [PATCH] [tools/cmake] fix the issue of the missing link flags added in Sconscript (#8957) --- tools/cmake.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cmake.py b/tools/cmake.py index d938f9c787..bf231d3436 100644 --- a/tools/cmake.py +++ b/tools/cmake.py @@ -38,7 +38,7 @@ def GenerateCFiles(env,project): else: CXXFLAGS = CFLAGS AFLAGS = rtconfig.AFLAGS.replace('\\', "/").replace('\"', "\\\"") - LFLAGS = rtconfig.LFLAGS.replace('\\', "/").replace('\"', "\\\"") + LFLAGS = env['LINKFLAGS'].replace('\\', "/").replace('\"', "\\\"") if "win32" in sys.platform: CC += ".exe"