mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-01 09:46:09 +03:00
build: Add OpenWrt toolchain definitions
This commit is contained in:
parent
4a68c8b36e
commit
595eb9a5b7
@ -22,6 +22,16 @@ clang_toolchain("clang_arm") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clang_toolchain("clang_arm_openwrt") {
|
||||||
|
extra_cppflags = "--target=arm-openwrt-linux-muslgnueabi -D_LIBCPP_HAS_MUSL_LIBC -D__UCLIBC__"
|
||||||
|
extra_ldflags = "--target=arm-openwrt-linux-muslgnueabi"
|
||||||
|
extra_asmflags = "--target=arm-openwrt-linux-muslgnueabi"
|
||||||
|
toolchain_args = {
|
||||||
|
current_cpu = "arm"
|
||||||
|
current_os = "linux"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
clang_toolchain("clang_arm64") {
|
clang_toolchain("clang_arm64") {
|
||||||
toolprefix = "aarch64-linux-gnu-"
|
toolprefix = "aarch64-linux-gnu-"
|
||||||
toolchain_args = {
|
toolchain_args = {
|
||||||
@ -30,6 +40,16 @@ clang_toolchain("clang_arm64") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clang_toolchain("clang_arm64_openwrt") {
|
||||||
|
extra_cppflags = "--target=aarch64-openwrt-linux-musl -D_LIBCPP_HAS_MUSL_LIBC -D__UCLIBC__"
|
||||||
|
extra_ldflags = "--target=aarch64-openwrt-linux-musl"
|
||||||
|
extra_asmflags = "--target=aarch64-openwrt-linux-musl"
|
||||||
|
toolchain_args = {
|
||||||
|
current_cpu = "arm64"
|
||||||
|
current_os = "linux"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
gcc_toolchain("arm64") {
|
gcc_toolchain("arm64") {
|
||||||
toolprefix = "aarch64-linux-gnu-"
|
toolprefix = "aarch64-linux-gnu-"
|
||||||
|
|
||||||
@ -138,6 +158,18 @@ clang_toolchain("clang_x64") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clang_toolchain("clang_x64_openwrt") {
|
||||||
|
# Output linker map files for binary size analysis.
|
||||||
|
enable_linker_map = true
|
||||||
|
extra_cppflags = "--target=x86_64-openwrt-linux-musl -D_LIBCPP_HAS_MUSL_LIBC -D__UCLIBC__"
|
||||||
|
extra_ldflags = "--target=x86_64-openwrt-linux-musl"
|
||||||
|
|
||||||
|
toolchain_args = {
|
||||||
|
current_cpu = "x64"
|
||||||
|
current_os = "linux"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
clang_toolchain("clang_x64_v8_arm64") {
|
clang_toolchain("clang_x64_v8_arm64") {
|
||||||
toolchain_args = {
|
toolchain_args = {
|
||||||
current_cpu = "x64"
|
current_cpu = "x64"
|
||||||
@ -208,6 +240,16 @@ clang_toolchain("clang_mipsel") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clang_toolchain("clang_mipsel_openwrt") {
|
||||||
|
extra_cppflags = "--target=mipsel-openwrt-linux-musl -D_LIBCPP_HAS_MUSL_LIBC -D__UCLIBC__"
|
||||||
|
extra_ldflags = "--target=mipsel-openwrt-linux-musl -Wl,--dynamic-linker=/lib/ld-musl-mipsel-sf.so.1"
|
||||||
|
|
||||||
|
toolchain_args = {
|
||||||
|
current_cpu = "mipsel"
|
||||||
|
current_os = "linux"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
clang_toolchain("clang_mips64el") {
|
clang_toolchain("clang_mips64el") {
|
||||||
toolchain_args = {
|
toolchain_args = {
|
||||||
current_cpu = "mips64el"
|
current_cpu = "mips64el"
|
||||||
|
Loading…
Reference in New Issue
Block a user