@@ -148,7 +148,7 @@ template("msvc_toolchain") {
148
148
}
149
149
150
150
tool (" rc" ) {
151
- command = " $python_path $tool_wrapper_path rc-wrapper $env rc.exe /nologo {{defines}} {{include_dirs}} /fo{{output}} {{source}}"
151
+ command = " \" $python_path \" $tool_wrapper_path rc-wrapper $env rc.exe /nologo {{defines}} {{include_dirs}} /fo{{output}} {{source}}"
152
152
depsformat = " msvc"
153
153
outputs = [
154
154
" {{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.res" ,
@@ -170,7 +170,7 @@ template("msvc_toolchain") {
170
170
ml = " ml.exe"
171
171
x64 = " "
172
172
}
173
- command = " $python_path $tool_wrapper_path asm-wrapper $env $ml $x64 {{defines}} {{include_dirs}} {{asmflags}} "
173
+ command = " \" $python_path \" $tool_wrapper_path asm-wrapper $env $ml $x64 {{defines}} {{include_dirs}} {{asmflags}} "
174
174
if (is_msvc_assembler ) {
175
175
command += " -c -o{{output}} {{source}}"
176
176
} else {
@@ -183,7 +183,7 @@ template("msvc_toolchain") {
183
183
184
184
tool (" alink" ) {
185
185
rspfile = " {{output}}.rsp"
186
- command = " $python_path $tool_wrapper_path link-wrapper $env False lib.exe /nologo /ignore:4221 /OUT:{{output}} @$rspfile "
186
+ command = " \" $python_path \" $tool_wrapper_path link-wrapper $env False lib.exe /nologo /ignore:4221 /OUT:{{output}} @$rspfile "
187
187
description = " LIB {{output}}"
188
188
outputs = [
189
189
# Ignore {{output_extension}} and always use .lib, there's no reason to
@@ -205,10 +205,10 @@ template("msvc_toolchain") {
205
205
pdbname = " ${ dllname } .pdb"
206
206
rspfile = " ${ dllname } .rsp"
207
207
208
- link_command = " $python_path $tool_wrapper_path link-wrapper $env False link.exe /nologo /IMPLIB:$libname /DLL /OUT:$dllname /PDB:${ dllname } .pdb @$rspfile "
208
+ link_command = " \" $python_path \" $tool_wrapper_path link-wrapper $env False link.exe /nologo /IMPLIB:$libname /DLL /OUT:$dllname /PDB:${ dllname } .pdb @$rspfile "
209
209
210
210
# TODO(brettw) support manifests
211
- # manifest_command = "$python_path $tool_wrapper_path manifest-wrapper $env mt.exe -nologo -manifest $manifests -out:${dllname}.manifest"
211
+ # manifest_command = "\" $python_path\" $tool_wrapper_path manifest-wrapper $env mt.exe -nologo -manifest $manifests -out:${dllname}.manifest"
212
212
# command = "cmd /c $link_command && $manifest_command"
213
213
command = link_command
214
214
@@ -236,10 +236,10 @@ template("msvc_toolchain") {
236
236
rspfile = " $binary_output .rsp"
237
237
pdbfile = " $binary_output .pdb"
238
238
239
- link_command = " $python_path $tool_wrapper_path link-wrapper $env False link.exe /nologo /OUT:$binary_output /PDB:$pdbfile @$rspfile "
239
+ link_command = " \" $python_path \" $tool_wrapper_path link-wrapper $env False link.exe /nologo /OUT:$binary_output /PDB:$pdbfile @$rspfile "
240
240
241
241
# TODO(brettw) support manifests
242
- # manifest_command = "$python_path $tool_wrapper_path manifest-wrapper $env mt.exe -nologo -manifest $manifests -out:{{output}}.manifest"
242
+ # manifest_command = "\" $python_path\" $tool_wrapper_path manifest-wrapper $env mt.exe -nologo -manifest $manifests -out:{{output}}.manifest"
243
243
# command = "cmd /c $link_command && $manifest_command"
244
244
command = link_command
245
245
@@ -263,7 +263,7 @@ template("msvc_toolchain") {
263
263
}
264
264
265
265
tool (" copy" ) {
266
- command = " $python_path $tool_wrapper_path recursive-mirror {{source}} {{output}}"
266
+ command = " \" $python_path \" $tool_wrapper_path recursive-mirror {{source}} {{output}}"
267
267
description = " COPY {{source}} {{output}}"
268
268
}
269
269
}
0 commit comments