From 6de51252e05fe1859df5e8864149af8b721f41bd Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Wed, 28 Oct 2020 07:54:30 +0100 Subject: [PATCH] add options to use optimized and mangled compiler builtins --- library/alloc/Cargo.toml | 2 ++ library/std/Cargo.toml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/library/alloc/Cargo.toml b/library/alloc/Cargo.toml index 381750a5198..eff197d9988 100644 --- a/library/alloc/Cargo.toml +++ b/library/alloc/Cargo.toml @@ -31,3 +31,5 @@ harness = false [features] compiler-builtins-mem = ['compiler_builtins/mem'] compiler-builtins-c = ["compiler_builtins/c"] +compiler-builtins-asm = ["compiler_builtins/asm"] +compiler-builtins-mangled-names = ["compiler_builtins/mangled-names"] diff --git a/library/std/Cargo.toml b/library/std/Cargo.toml index 281ed4f336c..9444ba84f8c 100644 --- a/library/std/Cargo.toml +++ b/library/std/Cargo.toml @@ -60,6 +60,8 @@ panic-unwind = ["panic_unwind"] profiler = ["profiler_builtins"] compiler-builtins-c = ["alloc/compiler-builtins-c"] compiler-builtins-mem = ["alloc/compiler-builtins-mem"] +compiler-builtins-asm = ["alloc/compiler-builtins-asm"] +compiler-builtins-mangled-names = ["alloc/compiler-builtins-mangled-names"] llvm-libunwind = ["unwind/llvm-libunwind"] system-llvm-libunwind = ["unwind/system-llvm-libunwind"]