Commit c229fc7
committed
[native_toolchain_c] Fix handle spaces in the path to the cl.exe compiler
When the Visual Studio C++ compiler (cl.exe) is installed in a path
containing spaces (e.g., the default "C:\Program Files\Microsoft Visual
Studio\2022\..."), the build system failed to execute it correctly.
The command was invoked without proper quoting, leading to an error:
'C:\Program' is not recognized as an internal or external command
This commit ensures that the path to cl.exe is properly quoted when
invoking the compiler, allowing builds to succeed on systems with a
standard Visual Studio installation.1 parent bdc8062 commit c229fc7
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
0 commit comments