mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-03 02:10:04 +00:00
tbb: Disable LTO on rv64
ABI mismatches still happen with clang on rv64 as well so disable LTO for now Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
From 95a5c97122b7c5bdeba61f2e890bae9a961dd4bf Mon Sep 17 00:00:00 2001
|
From 95a5c97122b7c5bdeba61f2e890bae9a961dd4bf Mon Sep 17 00:00:00 2001
|
||||||
From: Khem Raj <raj.khem@gmail.com>
|
From: Khem Raj <raj.khem@gmail.com>
|
||||||
Date: Wed, 8 Dec 2021 10:01:22 -0800
|
Date: Wed, 8 Dec 2021 10:01:22 -0800
|
||||||
Subject: [PATCH] Disable LTO on clang/riscv32
|
Subject: [PATCH] Disable LTO on clang/riscv
|
||||||
|
|
||||||
With clang in OE LTO does not work as it does not seem to carry right
|
With clang in OE LTO does not work as it does not seem to carry right
|
||||||
target info and mixes ABIs
|
target info and mixes ABIs
|
||||||
@@ -23,7 +23,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|||||||
# Enabling LTO on Android causes the NDK bug.
|
# Enabling LTO on Android causes the NDK bug.
|
||||||
# NDK throws the warning: "argument unused during compilation: '-Wa,--noexecstack'"
|
# NDK throws the warning: "argument unused during compilation: '-Wa,--noexecstack'"
|
||||||
-if (NOT ANDROID_PLATFORM AND BUILD_SHARED_LIBS)
|
-if (NOT ANDROID_PLATFORM AND BUILD_SHARED_LIBS)
|
||||||
+if (NOT ANDROID_PLATFORM AND BUILD_SHARED_LIBS AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "(riscv32|arm)")
|
+if (NOT ANDROID_PLATFORM AND BUILD_SHARED_LIBS AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "(riscv32|riscv64|arm)")
|
||||||
set(TBB_IPO_COMPILE_FLAGS $<$<NOT:$<CONFIG:Debug>>:-flto>)
|
set(TBB_IPO_COMPILE_FLAGS $<$<NOT:$<CONFIG:Debug>>:-flto>)
|
||||||
set(TBB_IPO_LINK_FLAGS $<$<NOT:$<CONFIG:Debug>>:-flto>)
|
set(TBB_IPO_LINK_FLAGS $<$<NOT:$<CONFIG:Debug>>:-flto>)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user