This repository was archived by the owner on Apr 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +18
-2
lines changed Expand file tree Collapse file tree 4 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ checked = []
2626[workspace ]
2727members = [
2828 " crates/compiler-builtins-smoke-test" ,
29- " crates/libm-cdylib" ,
3029 " crates/libm-bench" ,
30+ " crates/libm-cdylib" ,
3131]
3232
3333[dev-dependencies ]
Original file line number Diff line number Diff line change 2424$CMD --features " stable checked"
2525$CMD --release --features " stable checked ${TEST_MUSL} "
2626
27- if rustc --version | grep -E " nightly" ; then
27+ if rustc --version | grep " nightly" ; then
2828 if [ " $TARGET " = " x86_64-unknown-linux-gnu" ] || [ " ${TARGET} " = " x86_64-apple-darwin" ]; then
2929 (
3030 cd crates/libm-cdylib
Original file line number Diff line number Diff line change @@ -5,4 +5,13 @@ fn main() {
55 if profile == "release" {
66 println ! ( "cargo:rustc-cfg=release_profile" ) ;
77 }
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+ }
817}
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+ ) ]
18#![ allow( dead_code) ]
29#![ cfg_attr( not( test) , feature( core_intrinsics, lang_items) ) ]
310#![ cfg_attr( not( test) , no_std) ]
You can’t perform that action at this time.
0 commit comments