File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 41
41
- [ powerpc64-unknown-linux-gnu, 1, 0 ]
42
42
- [ powerpc64le-unknown-linux-gnu, 1, 0 ]
43
43
- [ riscv64gc-unknown-linux-gnu, 0, 0 ]
44
- - [ s390x-unknown-linux-gnu, 0, 0 ]
44
+ - [ s390x-unknown-linux-gnu, 0, 1 ]
45
45
- [ x86_64-pc-windows-gnu, 0, 1 ]
46
46
- [ x86_64-unknown-linux-musl, 0, 1 ]
47
47
steps :
Original file line number Diff line number Diff line change @@ -60,6 +60,13 @@ fn find_cmake_command() -> Option<OsString> {
60
60
}
61
61
}
62
62
63
+ fn has_target_cpu_optimization ( ) -> bool {
64
+ matches ! (
65
+ target_arch( ) . as_str( ) ,
66
+ "x86_64" | "x86" | "aarch64" | "arm" | "powerpc64"
67
+ )
68
+ }
69
+
63
70
impl CmakeBuilder {
64
71
pub ( crate ) fn new (
65
72
manifest_dir : PathBuf ,
@@ -166,6 +173,14 @@ impl CmakeBuilder {
166
173
} else {
167
174
panic ! ( "AWS_LC_SYS_NO_ASM only allowed for debug builds!" )
168
175
}
176
+ } else if !has_target_cpu_optimization ( ) {
177
+ emit_warning ( & format ! (
178
+ "Assembly optimizations not available for target arch: {}." ,
179
+ target_arch( )
180
+ ) ) ;
181
+ // TODO: This should not be needed once resolved upstream
182
+ // See: https://github.com/aws/aws-lc-rs/issues/655
183
+ cmake_cfg. define ( "OPENSSL_NO_ASM" , "1" ) ;
169
184
}
170
185
171
186
if cfg ! ( feature = "asan" ) {
You can’t perform that action at this time.
0 commit comments