mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 22:36:09 +03: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
c2e6e49551
commit
1a39cbb19a
@ -26,6 +26,10 @@ declare_args() {
|
|||||||
current_cpu == "mipsel" || current_cpu == "mips64el"
|
current_cpu == "mipsel" || current_cpu == "mips64el"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (current_toolchain == host_toolchain && host_toolchain == "//build/toolchain/linux:clang_x64") {
|
||||||
|
sysroot = ""
|
||||||
|
}
|
||||||
|
|
||||||
if (sysroot == "") {
|
if (sysroot == "") {
|
||||||
if (current_os == target_os && current_cpu == target_cpu &&
|
if (current_os == target_os && current_cpu == target_cpu &&
|
||||||
target_sysroot != "") {
|
target_sysroot != "") {
|
||||||
|
Loading…
Reference in New Issue
Block a user