From 9c638cc463ee1cdc04edc6ff67a9b1bb6573c826 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Mon, 29 Jan 2024 18:44:23 +0800 Subject: [PATCH] Remove rust workaround --- native/src/.cargo/config.toml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/native/src/.cargo/config.toml b/native/src/.cargo/config.toml index 259118ad4..a09b22de4 100644 --- a/native/src/.cargo/config.toml +++ b/native/src/.cargo/config.toml @@ -7,19 +7,3 @@ target = "aarch64-linux-android" build-std = ["std", "panic_abort"] build-std-features = ["panic_immediate_abort"] profile-rustflags = true - -# Workaround bug for undefined symbol errors that occur with the -# combination of `-Zbuild-std`, `opt-level = "z"`, and `lto = true`. -# compiler_builtins are expected to be built with special flags. -# https://github.com/rust-lang/rust/issues/108853 -# https://github.com/rust-lang/wg-cargo-std-aware/issues/62 - -[profile.release.package.compiler_builtins] -rustflags = ["-Zshare-generics=off"] -overflow-checks = false -debug-assertions = false - -[profile.dev.package.compiler_builtins] -rustflags = ["-Zshare-generics=off"] -overflow-checks = false -debug-assertions = false