diff --git a/BUILD.gn b/BUILD.gn index 5a538629deec48d1ceefb151393ce75735b81402..c48e621066a594c2fc6366416b5a6e0e0ed291a3 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -13,18 +13,15 @@ import("//build/ohos.gni") -if (host_os != "linux" || host_cpu != "arm64") { - ohos_cargo_crate("lib") { +ohos_cargo_crate("lib") { crate_name = "bitflags" crate_type = "rlib" crate_root = "src/lib.rs" - sources = [ "src/lib.rs" ] + sources = ["src/lib.rs"] edition = "2018" cargo_pkg_version = "1.3.2" cargo_pkg_authors = "The Rust Project Developers" cargo_pkg_name = "bitflags" - cargo_pkg_description = - "A macro to generate structures which behave like bitflags." - } + cargo_pkg_description = "A macro to generate structures which behave like bitflags." }