mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
coreos-base/afterburn: set LTO to false in Cargo.toml
Set `lto = false` in Cargo.toml to fix build issues that started happening with Rust 1.70+. Note, as upstream afterburn 5.4.0+ started dropping the `lto` option completely, it is not necessary to fix upstream. However, as long as Flatcar keeps using afterburn 5.2.0, this patch is still needed for Flatcar.
This commit is contained in:
parent
2c6636353f
commit
11fa6b211d
@ -224,6 +224,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/0001-Revert-remove-cl-legacy-feature.patch
|
||||
"${FILESDIR}"/0002-util-cmdline-Handle-the-cmdline-flags-as-list-of-sup.patch
|
||||
"${FILESDIR}"/0003-encode-information-for-systemd-networkd-wait-online.patch
|
||||
"${FILESDIR}"/0004-lto-thin.patch
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
|
||||
29
sdk_container/src/third_party/coreos-overlay/coreos-base/afterburn/files/0004-lto-thin.patch
vendored
Normal file
29
sdk_container/src/third_party/coreos-overlay/coreos-base/afterburn/files/0004-lto-thin.patch
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
From 28a17874ace612fa1c93f6cfb46b9f5982027833 Mon Sep 17 00:00:00 2001
|
||||
Message-Id: <28a17874ace612fa1c93f6cfb46b9f5982027833.1686823250.git.dpark@linux.microsoft.com>
|
||||
From: Dongsu Park <dpark@linux.microsoft.com>
|
||||
Date: Thu, 15 Jun 2023 12:00:33 +0200
|
||||
Subject: [PATCH] Cargo: set LTO to false
|
||||
|
||||
Set LTO to false (a.k.a. "thin-local") to avoid build failures
|
||||
related to LLVM, especially with Rust 1.70.0+.
|
||||
|
||||
---
|
||||
Cargo.toml | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Cargo.toml b/Cargo.toml
|
||||
index e5b3dc30..46bbda69 100644
|
||||
--- a/Cargo.toml
|
||||
+++ b/Cargo.toml
|
||||
@@ -22,7 +22,7 @@ name = "afterburn"
|
||||
path = "src/main.rs"
|
||||
|
||||
[profile.release]
|
||||
-lto = true
|
||||
+lto = false
|
||||
# We assume we're being delivered via e.g. RPM which supports split debuginfo
|
||||
debug = true
|
||||
|
||||
--
|
||||
2.34.1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user