Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoren Osborn <linux_dr>2022-09-09 09:49:42 +0300
committerCampbell Barton <campbell@blender.org>2022-09-09 10:18:11 +0300
commit3baca3171978f99498d0aeba6fedd9f02961ca07 (patch)
treee6f3e766ddd1c5053f9b8afa0f0edbcdb8ee28b2 /build_files
parent1e6a0038604f131b73f4d682e6cbe6a21ec26f7e (diff)
Fix error extracting arguments from project_source_info
Output of make encounters path names that are single-quoted. This causes the path to be misinterpreted and fail validation. Resolves error in "make check_cppcheck" Ref D15801 (partially applied)
Diffstat (limited to 'build_files')
-rw-r--r--build_files/cmake/project_source_info.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/build_files/cmake/project_source_info.py b/build_files/cmake/project_source_info.py
index a544f5733f0..f29d068044c 100644
--- a/build_files/cmake/project_source_info.py
+++ b/build_files/cmake/project_source_info.py
@@ -30,6 +30,8 @@ from typing import (
cast,
)
+import shlex
+
SOURCE_DIR = join(dirname(__file__), "..", "..")
SOURCE_DIR = normpath(SOURCE_DIR)
@@ -160,7 +162,7 @@ def build_info(
for c in compilers:
args = args.replace(c, fake_compiler)
- args = args.split()
+ args = shlex.split(args)
# end
# remove compiler