|
8 | 8 | mod apple_aarch64; |
9 | 9 | mod apple_x86_64; |
10 | 10 | mod linux_aarch64; |
11 | | -mod linux_i686; |
12 | 11 | mod linux_ppc64le; |
| 12 | +mod linux_x86; |
13 | 13 | mod linux_x86_64; |
14 | 14 | mod universal; |
15 | 15 | mod win_aarch64; |
| 16 | +mod win_x86; |
16 | 17 | mod win_x86_64; |
17 | 18 |
|
18 | 19 | use crate::nasm_builder::NasmBuilder; |
@@ -49,21 +50,25 @@ fn identify_sources() -> Vec<&'static str> { |
49 | 50 | if target_os() == "windows" { |
50 | 51 | if target_arch() == "x86_64" { |
51 | 52 | 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" { |
53 | 54 | source_files.append(&mut Vec::from(win_aarch64::CRYPTO_LIBRARY)); |
| 55 | + } else if target_arch() == "x86" { |
| 56 | + source_files.append(&mut Vec::from(win_x86::CRYPTO_LIBRARY)); |
| 57 | + } else { |
| 58 | + panic!("target_arch() = {}", target_arch()); |
54 | 59 | } |
55 | 60 | } else if target_vendor() == "apple" { |
56 | 61 | if target_arch() == "x86_64" { |
57 | 62 | 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" { |
59 | 64 | source_files.append(&mut Vec::from(apple_aarch64::CRYPTO_LIBRARY)); |
60 | 65 | } |
61 | 66 | } else if target_arch() == "x86_64" { |
62 | 67 | 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" { |
64 | 69 | 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)); |
| 70 | + } else if target_arch() == "x86" { |
| 71 | + source_files.append(&mut Vec::from(linux_x86::CRYPTO_LIBRARY)); |
67 | 72 | } else if target_arch() == "powerpc64le" { |
68 | 73 | source_files.append(&mut Vec::from(linux_ppc64le::CRYPTO_LIBRARY)); |
69 | 74 | } |
|
0 commit comments