Support cc_wrapper with MSVC toolchain
Bug: skia: Change-Id: I0433105c4a0e064e5cc228b7f6bec1ef3c66909c Reviewed-on: https://skia-review.googlesource.com/62744 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Mike Klein <mtklein@chromium.org>
This commit is contained in:
parent
30578893c5
commit
9dd4ae1a7a
@ -288,6 +288,11 @@ config("warnings") {
|
||||
"/wd4291", # no matching operator delete found;
|
||||
# memory will not be freed if initialization throws an exception
|
||||
]
|
||||
if (is_clang) {
|
||||
# Shouldn't be necessary for local builds. With distributed builds, files may lose
|
||||
# their case during copy, causing case-sensitivity mismatch on remote machines.
|
||||
cflags += [ "-Wno-nonportable-include-path" ]
|
||||
}
|
||||
} else {
|
||||
cflags += [
|
||||
"-Wall",
|
||||
|
@ -61,7 +61,7 @@ toolchain("msvc") {
|
||||
if (target_cpu == "x64") {
|
||||
_ml += "64"
|
||||
}
|
||||
command = "$env_setup$bin/$_ml.exe /nologo /c /Fo {{output}} {{source}}"
|
||||
command = "$env_setup $bin/$_ml.exe /nologo /c /Fo {{output}} {{source}}"
|
||||
outputs = [
|
||||
"{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.obj",
|
||||
]
|
||||
@ -74,7 +74,7 @@ toolchain("msvc") {
|
||||
pdbname = "{{target_out_dir}}/{{label_name}}_c.pdb"
|
||||
|
||||
# Label names may have spaces so pdbname must be quoted.
|
||||
command = "$env_setup$cl /nologo /showIncludes /FC @$rspfile /c {{source}} /Fo{{output}} /Fd\"$pdbname\""
|
||||
command = "$env_setup $cc_wrapper \"$cl\" /nologo /showIncludes /FC @$rspfile /c {{source}} /Fo{{output}} /Fd\"$pdbname\""
|
||||
depsformat = "msvc"
|
||||
outputs = [
|
||||
"{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.obj",
|
||||
@ -89,7 +89,7 @@ toolchain("msvc") {
|
||||
pdbname = "{{target_out_dir}}/{{label_name}}_c.pdb"
|
||||
|
||||
# Label names may have spaces so pdbname must be quoted.
|
||||
command = "$env_setup$cl /nologo /showIncludes /FC @$rspfile /c {{source}} /Fo{{output}} /Fd\"$pdbname\""
|
||||
command = "$env_setup $cc_wrapper \"$cl\" /nologo /showIncludes /FC @$rspfile /c {{source}} /Fo{{output}} /Fd\"$pdbname\""
|
||||
depsformat = "msvc"
|
||||
outputs = [
|
||||
"{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.obj",
|
||||
@ -101,7 +101,7 @@ toolchain("msvc") {
|
||||
tool("alink") {
|
||||
rspfile = "{{output}}.rsp"
|
||||
|
||||
command = "$env_setup$bin/lib.exe /nologo /ignore:4221 {{arflags}} /OUT:{{output}} @$rspfile"
|
||||
command = "$env_setup $bin/lib.exe /nologo /ignore:4221 {{arflags}} /OUT:{{output}} @$rspfile"
|
||||
outputs = [
|
||||
# Ignore {{output_extension}} and always use .lib, there's no reason to
|
||||
# allow targets to override this extension on Windows.
|
||||
@ -121,7 +121,7 @@ toolchain("msvc") {
|
||||
pdbname = "${dllname}.pdb"
|
||||
rspfile = "${dllname}.rsp"
|
||||
|
||||
command = "$env_setup$bin/link.exe /nologo /IMPLIB:$libname /DLL /OUT:$dllname /PDB:$pdbname @$rspfile"
|
||||
command = "$env_setup $bin/link.exe /nologo /IMPLIB:$libname /DLL /OUT:$dllname /PDB:$pdbname @$rspfile"
|
||||
outputs = [
|
||||
dllname,
|
||||
libname,
|
||||
@ -151,7 +151,7 @@ toolchain("msvc") {
|
||||
rspfile = "$exename.rsp"
|
||||
|
||||
command =
|
||||
"$env_setup$bin/link.exe /nologo /OUT:$exename /PDB:$pdbname @$rspfile"
|
||||
"$env_setup $bin/link.exe /nologo /OUT:$exename /PDB:$pdbname @$rspfile"
|
||||
|
||||
default_output_extension = ".exe"
|
||||
default_output_dir = "{{root_out_dir}}"
|
||||
|
Loading…
Reference in New Issue
Block a user