mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2025-04-07 11:17:16 +00:00
build: Don't use sysroot for host_toolchain
protoc should be built with the host toolchain, usually not needing the sysroot.
This commit is contained in:
parent
df3f942b88
commit
bfb4789540
1 changed files with 4 additions and 0 deletions
|
@ -26,6 +26,10 @@ declare_args() {
|
|||
current_cpu == "mipsel" || current_cpu == "mips64el"
|
||||
}
|
||||
|
||||
if (current_toolchain == host_toolchain) {
|
||||
sysroot = ""
|
||||
}
|
||||
|
||||
if (sysroot == "") {
|
||||
if (current_os == target_os && current_cpu == target_cpu &&
|
||||
target_sysroot != "") {
|
||||
|
|
Loading…
Add table
Reference in a new issue