mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 08:16:09 +03:00
build: Add mips64el & i386 OpenWrt toolchain definitions
OpenWrt has arch mips64el and i386, add here to support them. Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
This commit is contained in:
parent
b63fbe9d8a
commit
a6f5b9e126
@ -95,6 +95,18 @@ clang_toolchain("clang_x86") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clang_toolchain("clang_x86_openwrt") {
|
||||||
|
# Output linker map files for binary size analysis.
|
||||||
|
enable_linker_map = true
|
||||||
|
extra_cppflags = "--target=i386-openwrt-linux-musl -D_LIBCPP_HAS_MUSL_LIBC -D__UCLIBC__"
|
||||||
|
extra_ldflags = "--target=i386-openwrt-linux-musl"
|
||||||
|
|
||||||
|
toolchain_args = {
|
||||||
|
current_cpu = "x86"
|
||||||
|
current_os = "linux"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
clang_toolchain("clang_x86_v8_arm") {
|
clang_toolchain("clang_x86_v8_arm") {
|
||||||
toolchain_args = {
|
toolchain_args = {
|
||||||
current_cpu = "x86"
|
current_cpu = "x86"
|
||||||
@ -227,6 +239,16 @@ clang_toolchain("clang_mips64el") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clang_toolchain("clang_mips64el_openwrt") {
|
||||||
|
extra_cppflags = "--target=mips64el-openwrt-linux-musl -D_LIBCPP_HAS_MUSL_LIBC -D__UCLIBC__"
|
||||||
|
extra_ldflags = "--target=mips64el-openwrt-linux-musl"
|
||||||
|
|
||||||
|
toolchain_args = {
|
||||||
|
current_cpu = "mips64el"
|
||||||
|
current_os = "linux"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
gcc_toolchain("mipsel") {
|
gcc_toolchain("mipsel") {
|
||||||
toolprefix = "mipsel-linux-gnu-"
|
toolprefix = "mipsel-linux-gnu-"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user