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)
This commit is contained in:
parent
1e6a003860
commit
3baca31719
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue