@@ -58,8 +58,11 @@ const CMAKE_PARAMS_IOS: &[(&str, &[(&str, &str)])] = &[
5858] ;
5959
6060/// Additional parameters for Ohos
61- const CMAKE_PARAMS_OHOS_NDK : & [ ( & str , & [ ( & str , & str ) ] ) ] =
62- & [ ( "aarch64" , & [ ( "OHOS_ARCH" , "arm64-v8a" ) ] ) ] ;
61+ const CMAKE_PARAMS_OHOS_NDK : & [ ( & str , & [ ( & str , & str ) ] ) ] = & [
62+ ( "aarch64" , & [ ( "OHOS_ARCH" , "arm64-v8a" ) ] ) ,
63+ ( "arm" , & [ ( "OHOS_ARCH" , "armeabi-v7a" ) ] ) ,
64+ ( "x86_64" , & [ ( "OHOS_ARCH" , "x86_64" ) ] ) ,
65+ ] ;
6366
6467/// Create a cmake::Config for building BoringSSL.
6568fn new_boringssl_cmake_config ( ) -> cmake:: Config {
@@ -112,7 +115,11 @@ fn new_boringssl_cmake_config() -> cmake::Config {
112115 for ( name, value) in * params {
113116 boringssl_cmake. define ( name, value) ;
114117 }
115- break ;
118+ // common arguments for ohos help us to ignore some error
119+ boringssl_cmake
120+ . define ( "CMAKE_C_FLAGS" , "-Wno-unused-command-line-argument" ) ;
121+ boringssl_cmake
122+ . define ( "CMAKE_CXX_FLAGS" , "-Wno-unused-command-line-argument" ) ;
116123 }
117124 }
118125
0 commit comments