summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2022-05-07 12:08:43 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2022-05-07 12:08:43 +0200
commit0de38d4e4cfaf0435a9e7e4b246a5375e2b0d031 (patch)
tree107e7bcc2d0aa9767c8416a3cb14a57958eb7895
parentb6284894b870fac40aa488155adf4354bb9fe609 (diff)
downloadpackages-0de38d4e4cfaf0435a9e7e4b246a5375e2b0d031.tar.xz
extra/clang: disabled lto for i486
-rw-r--r--extra/clang/PKGBUILD7
1 files changed, 7 insertions, 0 deletions
diff --git a/extra/clang/PKGBUILD b/extra/clang/PKGBUILD
index e84b76eb..b68e60b3 100644
--- a/extra/clang/PKGBUILD
+++ b/extra/clang/PKGBUILD
@@ -14,3 +14,10 @@ eval "$(
if [ "$CARCH" = 'i486' ]; then
unset check
fi
+
+# LTO fails on i486
+if [ "$CARCH" = 'i486' ]; then
+ sed -i '
+ 1i options=(!lto)
+ ' PKGBUILD
+fi