File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ if [ "$QEMU" != "" ]; then
79
79
exec grep " ^PASSED .* tests" $CARGO_TARGET_DIR /out.log
80
80
fi
81
81
82
- # FIXME: x86_64-unknown-linux-gnux32 fail to compile wihout --release
82
+ # FIXME: x86_64-unknown-linux-gnux32 fail to compile without --release
83
83
# See https://github.com/rust-lang/rust/issues/45417
84
84
opt=
85
85
if [ " $TARGET " = " x86_64-unknown-linux-gnux32" ]; then
91
91
if [ " $TARGET " != " x86_64-rumprun-netbsd" ]; then
92
92
cargo test $opt --no-default-features --manifest-path libc-test/Cargo.toml --target $TARGET
93
93
fi
94
+ # Test the #[repr(align(x))] feature if this is building on Rust >= 1.25
95
+ if [ $( rustc --version | sed -E ' s/^rustc 1\.([0-9]*)\..*/\1/' ) -ge 25 ]; then
96
+ cargo test $opt --features align --manifest-path libc-test/Cargo.toml --target $TARGET
97
+ fi
94
98
exec cargo test $opt --manifest-path libc-test/Cargo.toml --target $TARGET
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ ctest = { git = "https://github.com/alexcrichton/ctest" }
14
14
[features ]
15
15
default = [ " use_std" ]
16
16
use_std = [ " libc/use_std" ]
17
+ align = [ " libc/align" ]
17
18
18
19
[[test ]]
19
20
name = " main"
You can’t perform that action at this time.
0 commit comments