diff options
author | Adam C. Foltzer <acfoltzer@galois.com> | 2018-01-11 16:04:40 -0800 |
---|---|---|
committer | Adam C. Foltzer <acfoltzer@galois.com> | 2018-01-29 15:47:05 -0800 |
commit | 1d81efb03d5efee5899db01737880b1b3969e1fc (patch) | |
tree | 5333fba87ba73d881364934454ebdaaaf98cc7b0 /cross | |
parent | 7eb6a2918080fce37df7e6d25194d46ed98f0f35 (diff) | |
download | meson-1d81efb03d5efee5899db01737880b1b3969e1fc.zip meson-1d81efb03d5efee5899db01737880b1b3969e1fc.tar.gz meson-1d81efb03d5efee5899db01737880b1b3969e1fc.tar.bz2 |
Add cross-compilation support for `rustc`
This patch is largely modeled on the relatively-straightforward code
for Fortran cross-compilation, so there might be some intricacies
missing.
Diffstat (limited to 'cross')
-rw-r--r-- | cross/ubuntu-armhf.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cross/ubuntu-armhf.txt b/cross/ubuntu-armhf.txt index 367eba3..6246ffe 100644 --- a/cross/ubuntu-armhf.txt +++ b/cross/ubuntu-armhf.txt @@ -3,6 +3,7 @@ # when cross compiled binaries can't be run we don't do that c = '/usr/bin/arm-linux-gnueabihf-gcc-7' cpp = '/usr/bin/arm-linux-gnueabihf-g++-7' +rust = ['rustc', '--target', 'arm-unknown-linux-gnueabihf', '-C', 'linker=/usr/bin/arm-linux-gnueabihf-gcc-7'] ar = '/usr/arm-linux-gnueabihf/bin/ar' strip = '/usr/arm-linux-gnueabihf/bin/strip' pkgconfig = '/usr/bin/arm-linux-gnueabihf-pkg-config' |