This repository was archived by the owner on Apr 28, 2025. It is now read-only.
File tree 4 files changed +18
-2
lines changed
4 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ checked = []
26
26
[workspace ]
27
27
members = [
28
28
" crates/compiler-builtins-smoke-test" ,
29
- " crates/libm-cdylib" ,
30
29
" crates/libm-bench" ,
30
+ " crates/libm-cdylib" ,
31
31
]
32
32
33
33
[dev-dependencies ]
Original file line number Diff line number Diff line change 24
24
$CMD --features " stable checked"
25
25
$CMD --release --features " stable checked ${TEST_MUSL} "
26
26
27
- if rustc --version | grep -E " nightly" ; then
27
+ if rustc --version | grep " nightly" ; then
28
28
if [ " $TARGET " = " x86_64-unknown-linux-gnu" ] || [ " ${TARGET} " = " x86_64-apple-darwin" ]; then
29
29
(
30
30
cd crates/libm-cdylib
Original file line number Diff line number Diff line change @@ -5,4 +5,13 @@ fn main() {
5
5
if profile == "release" {
6
6
println ! ( "cargo:rustc-cfg=release_profile" ) ;
7
7
}
8
+ let nightly = {
9
+ let mut cmd = std:: process:: Command :: new ( "rustc" ) ;
10
+ cmd. arg ( "--version" ) ;
11
+ let output = String :: from_utf8 ( cmd. output ( ) . unwrap ( ) . stdout ) . unwrap ( ) ;
12
+ output. contains ( "nightly" )
13
+ } ;
14
+ if nightly {
15
+ println ! ( "cargo:rustc-cfg=unstable_rust" ) ;
16
+ }
8
17
}
Original file line number Diff line number Diff line change
1
+ #![ cfg(
2
+ // The tests are only enabled on x86 32/64-bit linux/macos:
3
+ all( unstable_rust,
4
+ any( target_os = "linux" , target_os = "macos" ) ,
5
+ any( target_arch = "x86" , target_arch = "x86_64" )
6
+ )
7
+ ) ]
1
8
#![ allow( dead_code) ]
2
9
#![ cfg_attr( not( test) , feature( core_intrinsics, lang_items) ) ]
3
10
#![ cfg_attr( not( test) , no_std) ]
You can’t perform that action at this time.
0 commit comments