guix: platform: Add platform-rust-target.
* guix/platform.scm <platform>: Add rust-target field. * guix/platforms/arm.scm (armv7-linux, aarch64-linux): Add the system's rust target triplet. * guix/platforms/mips.scm (mips64-linux): * guix/platforms/powerpc.scm (powerpc-linux, powerpc64-linux, powerpc64le-linux): * guix/platforms/riscv.scm (riscv64-linux): * guix/platforms/x86.scm (i686-linux, x86_64-linux, i686-mingw, x86_64-mingw, i586-pc): Same. Change-Id: Id9dca0fb8ec2b3bf2b3876b974e4bbaa30dbc6a6
This commit is contained in:
parent
f668ab0fd7
commit
911c3deb40
@ -29,6 +29,7 @@
|
||||
platform-target
|
||||
platform-system
|
||||
platform-linux-architecture
|
||||
platform-rust-target
|
||||
platform-glibc-dynamic-linker
|
||||
|
||||
&platform-not-found-error
|
||||
@ -74,6 +75,8 @@
|
||||
(system platform-system)
|
||||
(linux-architecture platform-linux-architecture
|
||||
(default #false))
|
||||
(rust-target platform-rust-target
|
||||
(default #false))
|
||||
(glibc-dynamic-linker platform-glibc-dynamic-linker))
|
||||
|
||||
|
||||
|
@ -27,6 +27,7 @@
|
||||
(target "arm-linux-gnueabihf")
|
||||
(system "armhf-linux")
|
||||
(linux-architecture "arm")
|
||||
(rust-target "armv7-unknown-linux-gnueabihf")
|
||||
(glibc-dynamic-linker "/lib/ld-linux-armhf.so.3")))
|
||||
|
||||
(define aarch64-linux
|
||||
@ -34,4 +35,5 @@
|
||||
(target "aarch64-linux-gnu")
|
||||
(system "aarch64-linux")
|
||||
(linux-architecture "arm64")
|
||||
(rust-target "aarch64-unknown-linux-gnu")
|
||||
(glibc-dynamic-linker "/lib/ld-linux-aarch64.so.1")))
|
||||
|
@ -26,4 +26,5 @@
|
||||
(target "mips64el-linux-gnu")
|
||||
(system "mips64el-linux")
|
||||
(linux-architecture "mips")
|
||||
(rust-target "mips64el-unknown-linux-gnuabi64")
|
||||
(glibc-dynamic-linker "/lib/ld.so.1")))
|
||||
|
@ -28,6 +28,7 @@
|
||||
(target "powerpc-linux-gnu")
|
||||
(system "powerpc-linux")
|
||||
(linux-architecture "powerpc")
|
||||
(rust-target "powerpc-unknown-linux-gnu")
|
||||
(glibc-dynamic-linker "/lib/ld.so.1")))
|
||||
|
||||
(define powerpc64-linux
|
||||
@ -35,6 +36,7 @@
|
||||
(target "powerpc64-linux-gnu")
|
||||
(system #f) ;not supported
|
||||
(linux-architecture "powerpc")
|
||||
(rust-target "powerpc64-unknown-linux-gnu")
|
||||
(glibc-dynamic-linker "/lib/ld64.so.1")))
|
||||
|
||||
(define powerpc64le-linux
|
||||
@ -42,4 +44,5 @@
|
||||
(target "powerpc64le-linux-gnu")
|
||||
(system "powerpc64le-linux")
|
||||
(linux-architecture "powerpc")
|
||||
(rust-target "powerpc64le-unknown-linux-gnu")
|
||||
(glibc-dynamic-linker "/lib/ld64.so.2")))
|
||||
|
@ -26,4 +26,5 @@
|
||||
(target "riscv64-linux-gnu")
|
||||
(system "riscv64-linux")
|
||||
(linux-architecture "riscv")
|
||||
(rust-target "riscv64gc-unknown-linux-gnu")
|
||||
(glibc-dynamic-linker "/lib/ld-linux-riscv64-lp64d.so.1")))
|
||||
|
@ -30,6 +30,7 @@
|
||||
(target "i686-linux-gnu")
|
||||
(system "i686-linux")
|
||||
(linux-architecture "i386")
|
||||
(rust-target "i686-unknown-linux-gnu")
|
||||
(glibc-dynamic-linker "/lib/ld-linux.so.2")))
|
||||
|
||||
(define x86_64-linux
|
||||
@ -37,22 +38,26 @@
|
||||
(target "x86_64-linux-gnu")
|
||||
(system "x86_64-linux")
|
||||
(linux-architecture "x86_64")
|
||||
(rust-target "x86_64-unknown-linux-gnu")
|
||||
(glibc-dynamic-linker "/lib/ld-linux-x86-64.so.2")))
|
||||
|
||||
(define i686-mingw
|
||||
(platform
|
||||
(target "i686-w64-mingw32")
|
||||
(system #f)
|
||||
(rust-target "i686-pc-windows-gnu")
|
||||
(glibc-dynamic-linker #f)))
|
||||
|
||||
(define x86_64-mingw
|
||||
(platform
|
||||
(target "x86_64-w64-mingw32")
|
||||
(system #f)
|
||||
(rust-target "x86_64-pc-windows-gnu")
|
||||
(glibc-dynamic-linker #f)))
|
||||
|
||||
(define i586-gnu
|
||||
(platform
|
||||
(target "i586-pc-gnu")
|
||||
(system "i586-gnu")
|
||||
(rust-target "i686-unknown-hurd-gnu")
|
||||
(glibc-dynamic-linker "/lib/ld.so.1")))
|
||||
|
Loading…
Reference in New Issue
Block a user