diff options
| -rw-r--r-- | lldb/lit/helper/toolchain.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/lit/helper/toolchain.py b/lldb/lit/helper/toolchain.py index 7aa5d0e8a9b..ce22c25180e 100644 --- a/lldb/lit/helper/toolchain.py +++ b/lldb/lit/helper/toolchain.py @@ -42,12 +42,14 @@ def _use_msvc_substitutions(config): # If running from a Visual Studio Command prompt (e.g. vcvars), this will # detect the include and lib paths, and find cl.exe and link.exe and create # substitutions for each of them that explicitly specify /I and /L paths - cl = '"' + lit.util.which('cl') + '"' - link = '"' + lit.util.which('link') + '"' + cl = lit.util.which('cl') + link = lit.util.which('link') if not cl or not link: return + cl = '"' + cl + '"' + link = '"' + link + '"' includes = os.getenv('INCLUDE', '').split(';') libs = os.getenv('LIB', '').split(';') |

