Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Commit

Permalink
Auto merge of #157 - japaric:c-int-width, r=japaric
Browse files Browse the repository at this point in the history
add the target-c-int-width field to the target specifications

this is a new mandatory field in the target specification
  • Loading branch information
homunkulus committed Oct 20, 2017
2 parents a1aa573 + aacba3a commit 23882a1
Show file tree
Hide file tree
Showing 23 changed files with 44 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ after_success:
after_script: set +e

before_cache:
- docker history -q japaric/$TARGET:v0.1.10 |
- docker history -q japaric/$TARGET:v0.1.12 |
grep -v \<missing\> |
xargs docker save |
gzip > $HOME/docker/$TARGET.tar.gz
Expand Down
1 change: 1 addition & 0 deletions docker/aarch64-unknown-linux-steed.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"-nostartfiles"
]
},
"target-c-int-width": "32",
"target-endian": "little",
"target-family": "unix",
"target-pointer-width": "64",
Expand Down
5 changes: 3 additions & 2 deletions docker/aarch64-unknown-linux-steed/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ COPY lld.sh /
RUN bash /lld.sh

COPY qemu.sh /
RUN bash /qemu.sh 2.9.0 aarch64
RUN bash /qemu.sh 2.10.1 aarch64

COPY aarch64-unknown-linux-steed.json /json

ENV RUST_TARGET_PATH=/json \
ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_STEED_RUNNER=qemu-aarch64 \
RUST_TARGET_PATH=/json \
RUST_TEST_THREADS=1
1 change: 1 addition & 0 deletions docker/arm-unknown-linux-steedeabi.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"-nostartfiles"
]
},
"target-c-int-width": "32",
"target-endian": "little",
"target-family": "unix",
"target-pointer-width": "32",
Expand Down
5 changes: 3 additions & 2 deletions docker/arm-unknown-linux-steedeabi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ COPY lld.sh /
RUN bash /lld.sh

COPY qemu.sh /
RUN bash /qemu.sh 2.9.0 arm
RUN bash /qemu.sh 2.10.1 arm

COPY arm-unknown-linux-steedeabi.json /json

ENV RUST_TARGET_PATH=/json \
ENV CARGO_TARGET_ARM_UNKNOWN_LINUX_STEEDEABI_RUNNER=qemu-arm \
RUST_TARGET_PATH=/json \
RUST_TEST_THREADS=1
1 change: 1 addition & 0 deletions docker/arm-unknown-linux-steedeabihf.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"-nostartfiles"
]
},
"target-c-int-width": "32",
"target-endian": "little",
"target-family": "unix",
"target-pointer-width": "32",
Expand Down
5 changes: 3 additions & 2 deletions docker/arm-unknown-linux-steedeabihf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ COPY lld.sh /
RUN bash /lld.sh

COPY qemu.sh /
RUN bash /qemu.sh 2.9.0 arm
RUN bash /qemu.sh 2.10.1 arm

COPY arm-unknown-linux-steedeabihf.json /json

ENV RUST_TARGET_PATH=/json \
ENV CARGO_TARGET_ARM_UNKNOWN_LINUX_STEEDEABIHF_RUNNER=qemu-arm \
RUST_TARGET_PATH=/json \
RUST_TEST_THREADS=1
1 change: 1 addition & 0 deletions docker/armv7-unknown-linux-steedeabihf.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"-nostartfiles"
]
},
"target-c-int-width": "32",
"target-endian": "little",
"target-family": "unix",
"target-pointer-width": "32",
Expand Down
5 changes: 3 additions & 2 deletions docker/armv7-unknown-linux-steedeabihf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ COPY lld.sh /
RUN bash /lld.sh

COPY qemu.sh /
RUN bash /qemu.sh 2.9.0 arm
RUN bash /qemu.sh 2.10.1 arm

COPY armv7-unknown-linux-steedeabihf.json /json

ENV RUST_TARGET_PATH=/json \
ENV CARGO_TARGET_ARMV7_UNKNOWN_LINUX_STEEDEABIHF_RUNNER=qemu-arm \
RUST_TARGET_PATH=/json \
RUST_TEST_THREADS=1
1 change: 1 addition & 0 deletions docker/i686-unknown-linux-steed.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"-nostartfiles"
]
},
"target-c-int-width": "32",
"target-endian": "little",
"target-family": "unix",
"target-pointer-width": "32",
Expand Down
8 changes: 4 additions & 4 deletions docker/lld.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ main() {
done

cat <<EOF >>/etc/apt/sources.list
deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-4.0 main
deb-src http://apt.llvm.org/xenial/ llvm-toolchain-xenial-4.0 main
deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main
deb-src http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main
EOF

curl -L http://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
apt-get update
apt-get install --no-install-recommends -y lld-4.0
ln -s ld.lld-4.0 /usr/bin/ld.lld
apt-get install --no-install-recommends -y lld-5.0
ln -s ld.lld-5.0 /usr/bin/ld.lld

# Clean up
apt-get purge --auto-remove -y ${purge_list[@]}
Expand Down
1 change: 1 addition & 0 deletions docker/mips-unknown-linux-steed.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
]
},
"relocation-model": "static",
"target-c-int-width": "32",
"target-endian": "big",
"target-family": "unix",
"target-pointer-width": "32",
Expand Down
5 changes: 3 additions & 2 deletions docker/mips-unknown-linux-steed/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ COPY lld.sh /
RUN bash /lld.sh

COPY qemu.sh /
RUN bash /qemu.sh 2.9.0 mips
RUN bash /qemu.sh 2.10.1 mips

COPY mips-unknown-linux-steed.json /json

ENV RUST_TARGET_PATH=/json \
ENV CARGO_TARGET_MIPS_UNKNOWN_LINUX_STEED_RUNNER=qemu-mips \
RUST_TARGET_PATH=/json \
RUST_TEST_THREADS=1
1 change: 1 addition & 0 deletions docker/mipsel-unknown-linux-steed.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"-nostartfiles"
]
},
"target-c-int-width": "32",
"relocation-model": "static",
"target-endian": "little",
"target-family": "unix",
Expand Down
5 changes: 3 additions & 2 deletions docker/mipsel-unknown-linux-steed/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ COPY lld.sh /
RUN bash /lld.sh

COPY qemu.sh /
RUN bash /qemu.sh 2.9.0 mipsel
RUN bash /qemu.sh 2.10.1 mipsel

COPY mipsel-unknown-linux-steed.json /json

ENV RUST_TARGET_PATH=/json \
ENV CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_STEED_RUNNER=qemu-mipsel \
RUST_TARGET_PATH=/json \
RUST_TEST_THREADS=1
1 change: 1 addition & 0 deletions docker/powerpc-unknown-linux-steed.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"-nostartfiles"
]
},
"target-c-int-width": "32",
"target-endian": "big",
"target-family": "unix",
"target-pointer-width": "32",
Expand Down
4 changes: 2 additions & 2 deletions docker/powerpc-unknown-linux-steed/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ RUN bash /xargo.sh
COPY qemu.sh /
RUN apt-get install -y --no-install-recommends \
gcc-powerpc-linux-gnu && \
bash /qemu.sh 2.9.0 ppc
bash /qemu.sh 2.10.1 ppc

COPY powerpc-unknown-linux-steed.json /json

ENV CARGO_TARGET_POWERPC_UNKNOWN_LINUX_STEED_LINKER=powerpc-linux-gnu-gcc \
ENV CARGO_TARGET_POWERPC_UNKNOWN_LINUX_STEED_RUNNER=qemu-ppc \
RUST_TARGET_PATH=/json \
RUST_TEST_THREADS=1
1 change: 1 addition & 0 deletions docker/powerpc64-unknown-linux-steed.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"-nostartfiles"
]
},
"target-c-int-width": "32",
"target-endian": "big",
"target-family": "unix",
"target-pointer-width": "64",
Expand Down
3 changes: 2 additions & 1 deletion docker/powerpc64-unknown-linux-steed/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ RUN bash /xargo.sh
COPY qemu.sh /
RUN apt-get install -y --no-install-recommends \
gcc-powerpc64-linux-gnu && \
bash /qemu.sh 2.9.0 ppc64
bash /qemu.sh 2.10.1 ppc64

COPY powerpc64-unknown-linux-steed.json /json

ENV CARGO_TARGET_POWERPC64_UNKNOWN_LINUX_STEED_LINKER=powerpc64-linux-gnu-gcc \
CARGO_TARGET_POWERPC64_UNKNOWN_LINUX_STEED_RUNNER=qemu-ppc64 \
RUST_TARGET_PATH=/json \
RUST_TEST_THREADS=1
1 change: 1 addition & 0 deletions docker/powerpc64le-unknown-linux-steed.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"-nostartfiles"
]
},
"target-c-int-width": "32",
"target-endian": "little",
"target-family": "unix",
"target-pointer-width": "64",
Expand Down
4 changes: 2 additions & 2 deletions docker/powerpc64le-unknown-linux-steed/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ RUN bash /xargo.sh
COPY qemu.sh /
RUN apt-get install -y --no-install-recommends \
gcc-powerpc64le-linux-gnu && \
bash /qemu.sh 2.9.0 ppc64le
bash /qemu.sh 2.10.1 ppc64le

COPY powerpc64le-unknown-linux-steed.json /json

ENV CARGO_TARGET_POWERPC64LE_UNKNOWN_LINUX_STEED_LINKER=powerpc64le-linux-gnu-gcc \
ENV CARGO_TARGET_POWERPC64LE_UNKNOWN_LINUX_STEED_RUNNER=qemu-ppc64le \
RUST_TARGET_PATH=/json \
RUST_TEST_THREADS=1
1 change: 1 addition & 0 deletions docker/x86_64-unknown-linux-steed.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"-nostartfiles"
]
},
"target-c-int-width": "32",
"target-endian": "little",
"target-family": "unix",
"target-pointer-width": "64",
Expand Down
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#![feature(cfg_target_vendor)]
#![feature(collections_range)]
#![feature(compiler_builtins_lib)]
#![feature(const_atomic_bool_new)]
#![feature(const_atomic_u8_new)]
#![feature(const_atomic_usize_new)]
#![feature(const_fn)]
#![feature(core_intrinsics)]
#![feature(custom_attribute)]
Expand All @@ -22,8 +25,8 @@
#![feature(lang_items)]
#![feature(macro_reexport)]
#![feature(naked_functions)]
#![feature(optin_builtin_traits)]
#![feature(needs_drop)]
#![feature(optin_builtin_traits)]
#![feature(placement_new_protocol)]
#![feature(prelude_import)]
#![feature(rand)]
Expand Down

0 comments on commit 23882a1

Please sign in to comment.