summaryrefslogtreecommitdiffstats
path: root/meta/recipes-example/rust-hello-world/rust-hello-world/0001-enable-LTO.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-example/rust-hello-world/rust-hello-world/0001-enable-LTO.patch')
-rw-r--r--meta/recipes-example/rust-hello-world/rust-hello-world/0001-enable-LTO.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/recipes-example/rust-hello-world/rust-hello-world/0001-enable-LTO.patch b/meta/recipes-example/rust-hello-world/rust-hello-world/0001-enable-LTO.patch
new file mode 100644
index 0000000000..56ef9e73e6
--- /dev/null
+++ b/meta/recipes-example/rust-hello-world/rust-hello-world/0001-enable-LTO.patch
@@ -0,0 +1,23 @@
1From fa40b874f6470ec11a8fd7b0c9909d0cdd2d6feb Mon Sep 17 00:00:00 2001
2From: Dan Callaghan <dan.callaghan@opengear.com>
3Date: Fri, 5 Feb 2021 08:56:34 +1000
4Subject: [PATCH] enable LTO
5
6---
7 Cargo.toml | 3 +++
8 1 file changed, 3 insertions(+)
9
10diff --git a/Cargo.toml b/Cargo.toml
11index 7a2f6c8..cdb6b5d 100644
12--- a/Cargo.toml
13+++ b/Cargo.toml
14@@ -3,3 +3,6 @@
15 name = "rust-hello-world"
16 version = "0.0.1"
17 authors = ["Cody P Schafer <dev@codyps.com>"]
18+
19+[profile.release]
20+lto = true
21--
222.28.0
23