@@ -13,6 +13,7 @@ mod linux_ppc64le;
1313mod linux_x86_64;
1414mod universal;
1515mod win_aarch64;
16+ mod win_x86;
1617mod win_x86_64;
1718
1819use crate :: nasm_builder:: NasmBuilder ;
@@ -49,20 +50,24 @@ fn identify_sources() -> Vec<&'static str> {
4950 if target_os ( ) == "windows" {
5051 if target_arch ( ) == "x86_64" {
5152 source_files. append ( & mut Vec :: from ( win_x86_64:: CRYPTO_LIBRARY ) ) ;
52- } else if target_arch ( ) == "aarch64" || target_arch ( ) == "arm64" {
53+ } else if target_arch ( ) == "aarch64" {
5354 source_files. append ( & mut Vec :: from ( win_aarch64:: CRYPTO_LIBRARY ) ) ;
55+ } else if target_arch ( ) == "i686" {
56+ source_files. append ( & mut Vec :: from ( win_x86:: CRYPTO_LIBRARY ) ) ;
57+ } else {
58+ panic ! ( "target_arch() = {}" , target_arch( ) ) ;
5459 }
5560 } else if target_vendor ( ) == "apple" {
5661 if target_arch ( ) == "x86_64" {
5762 source_files. append ( & mut Vec :: from ( apple_x86_64:: CRYPTO_LIBRARY ) ) ;
58- } else if target_arch ( ) == "aarch64" || target_arch ( ) == "arm64" {
63+ } else if target_arch ( ) == "aarch64" {
5964 source_files. append ( & mut Vec :: from ( apple_aarch64:: CRYPTO_LIBRARY ) ) ;
6065 }
6166 } else if target_arch ( ) == "x86_64" {
6267 source_files. append ( & mut Vec :: from ( linux_x86_64:: CRYPTO_LIBRARY ) ) ;
63- } else if target_arch ( ) == "aarch64" || target_arch ( ) == "arm64" {
68+ } else if target_arch ( ) == "aarch64" {
6469 source_files. append ( & mut Vec :: from ( linux_aarch64:: CRYPTO_LIBRARY ) ) ;
65- } else if target_arch ( ) . ends_with ( "86" ) && target_arch ( ) . starts_with ( 'i' ) {
70+ } else if target_arch ( ) == "i686" {
6671 source_files. append ( & mut Vec :: from ( linux_i686:: CRYPTO_LIBRARY ) ) ;
6772 } else if target_arch ( ) == "powerpc64le" {
6873 source_files. append ( & mut Vec :: from ( linux_ppc64le:: CRYPTO_LIBRARY ) ) ;
0 commit comments