@@ -58,17 +58,15 @@ fn identify_sources() -> Vec<&'static str> {
5858 } else if target_arch ( ) == "aarch64" || target_arch ( ) == "arm64" {
5959 source_files. append ( & mut Vec :: from ( apple_aarch64:: CRYPTO_LIBRARY ) ) ;
6060 }
61- } else {
62- if target_arch ( ) == "x86_64" {
63- source_files. append ( & mut Vec :: from ( linux_x86_64:: CRYPTO_LIBRARY ) ) ;
64- } else if target_arch ( ) == "aarch64" || target_arch ( ) == "arm64" {
65- source_files. append ( & mut Vec :: from ( linux_aarch64:: CRYPTO_LIBRARY ) ) ;
66- } else if target_arch ( ) . ends_with ( "86" ) && target_arch ( ) . starts_with ( "i" ) {
67- source_files. append ( & mut Vec :: from ( linux_i686:: CRYPTO_LIBRARY ) ) ;
68- } else if target_arch ( ) == "powerpc64le" {
69- source_files. append ( & mut Vec :: from ( linux_ppc64le:: CRYPTO_LIBRARY ) ) ;
70- }
71- } ;
61+ } else if target_arch ( ) == "x86_64" {
62+ source_files. append ( & mut Vec :: from ( linux_x86_64:: CRYPTO_LIBRARY ) ) ;
63+ } else if target_arch ( ) == "aarch64" || target_arch ( ) == "arm64" {
64+ source_files. append ( & mut Vec :: from ( linux_aarch64:: CRYPTO_LIBRARY ) ) ;
65+ } else if target_arch ( ) . ends_with ( "86" ) && target_arch ( ) . starts_with ( 'i' ) {
66+ source_files. append ( & mut Vec :: from ( linux_i686:: CRYPTO_LIBRARY ) ) ;
67+ } else if target_arch ( ) == "powerpc64le" {
68+ source_files. append ( & mut Vec :: from ( linux_ppc64le:: CRYPTO_LIBRARY ) ) ;
69+ }
7270 source_files
7371}
7472
@@ -144,7 +142,7 @@ impl BuildOption {
144142 BuildOption :: FLAG ( val) => nasm_builder. flag ( val) ,
145143 BuildOption :: DEFINE ( key, val) => nasm_builder. define ( key, Some ( val. as_str ( ) ) ) ,
146144 BuildOption :: INCLUDE ( path) => nasm_builder. include ( path. as_path ( ) ) ,
147- _ => nasm_builder, // STD ignored for NASM
145+ BuildOption :: STD ( _ ) => nasm_builder, // STD ignored for NASM
148146 }
149147 }
150148}
@@ -348,6 +346,7 @@ impl CcBuilder {
348346 source_feature_map
349347 }
350348
349+ #[ allow( clippy:: unused_self) ]
351350 fn add_defines ( & self , build_options : & mut Vec < BuildOption > , is_like_msvc : bool ) {
352351 if is_like_msvc {
353352 build_options. push ( BuildOption :: define ( "_HAS_EXCEPTIONS" , "0" ) ) ;
0 commit comments