There was an error while loading. Please reload this page.
1 parent 3544ead commit 64d19deCopy full SHA for 64d19de
1 file changed
testing/generate_raw_ltoir.py
@@ -5,6 +5,7 @@
5
import os
6
import pathlib
7
import platform
8
+import shlex
9
import subprocess
10
import sys
11
@@ -77,7 +78,9 @@ def determine_include_flags():
77
78
# Parse out the arguments following "INCLUDES=" - these are a space
79
# separated list of strings that are potentially quoted.
80
- quoted_flags = includes_lines[0].split("INCLUDES=")[1].strip().split()
81
+ quoted_flags = shlex.split(
82
+ includes_lines[0].split("INCLUDES=")[1].strip(), posix=False
83
+ )
84
include_flags = [flag.strip('"') for flag in quoted_flags]
85
cccl_include_flags = [flag + os.path.sep + "cccl" for flag in include_flags]
86
include_flags += cccl_include_flags
0 commit comments