Verified Commit 6ddd394e authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

Some experiments with cross-compiling

parent 83757621
Pipeline #10063 passed with stages
in 17 minutes and 44 seconds
......@@ -3,3 +3,6 @@ features = ["force_alloc_system"]
[target.powerpc-unknown-linux-gnu.dependencies.std]
features = ["force_alloc_system"]
[target.arm-openwrt-linux-muslgnueabi.dependencies.std]
features = ["force_alloc_system"]
{
"abi-blacklist": [
"stdcall",
"fastcall",
"vectorcall",
"thiscall",
"win64",
"sysv64"
],
"arch": "arm",
"cpu": "cortex-a8",
"crt-static-default": false,
"data-layout": "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64",
"dynamic-linking": true,
"env": "musl",
"exe-allocation-crate": "alloc_jemalloc",
"executables": true,
"features": "+v7,+vfp3,+d16,+thumb2,-neon",
"has-elf-tls": true,
"is-builtin": true,
"linker-flavor": "gcc",
"linker-is-gnu": true,
"llvm-target": "armv7-unknown-linux-gnueabihf",
"max-atomic-width": 64,
"os": "linux",
"post-link-args": {
"gcc": [
"-Wl,-)"
]
},
"post-link-objects": [
],
"pre-link-args": {
"gcc": [
"-L/home/vorner/OpenWrt-SDK-mvebu_gcc-4.8-linaro_musl-1.1.15_eabi.Linux-x86_64/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-4.8-linaro_musl-1.1.15_eabi/lib",
"-Wl,--as-needed",
"-Wl,-z,noexecstack",
"-Wl,--eh-frame-hdr",
"-Wl,-("
]
},
"pre-link-objects-exe": [
],
"relro-level": "full",
"target-endian": "little",
"target-family": "unix",
"target-pointer-width": "32",
"vendor": "unknown",
"linker": "/home/vorner/OpenWrt-SDK-mvebu_gcc-4.8-linaro_musl-1.1.15_eabi.Linux-x86_64/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-4.8-linaro_musl-1.1.15_eabi/bin/arm-openwrt-linux-muslgnueabi-gcc"
}
export STAGING_DIR=/home/vorner/OpenWrt-SDK-mvebu_gcc-4.8-linaro_musl-1.1.15_eabi.Linux-x86_64/staging_dir
export RUSTFLAGS='-Z unstable-options -C target-feature=-crt-static'
export CC_arm_openwrt_linux_muslgnueabi=/home/vorner/OpenWrt-SDK-mvebu_gcc-4.8-linaro_musl-1.1.15_eabi.Linux-x86_64/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-4.8-linaro_musl-1.1.15_eabi/bin/arm-openwrt-linux-gcc
export CFLAGS_arm_openwrt_linux_muslgnueabi="-march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -mfloat-abi=hard -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment