diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-12-28 19:19:18 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-12-28 19:20:31 -0800 |
commit | 99250956dbd87e919bf0cc149768e8d60a70c538 (patch) | |
tree | 2a0271e672fd719a3b321991cb049547158d645f /meta-oe/recipes-support/tbb | |
parent | ea287c1f1419c1d265667411d8f2b2153f5a0030 (diff) | |
download | meta-openembedded-99250956dbd87e919bf0cc149768e8d60a70c538.tar.gz |
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>
Diffstat (limited to 'meta-oe/recipes-support/tbb')
-rw-r--r-- | meta-oe/recipes-support/tbb/tbb/0001-Disable-LTO-on-clang-riscv32.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-oe/recipes-support/tbb/tbb/0001-Disable-LTO-on-clang-riscv32.patch b/meta-oe/recipes-support/tbb/tbb/0001-Disable-LTO-on-clang-riscv32.patch index 093c828fe6..662065635d 100644 --- a/meta-oe/recipes-support/tbb/tbb/0001-Disable-LTO-on-clang-riscv32.patch +++ b/meta-oe/recipes-support/tbb/tbb/0001-Disable-LTO-on-clang-riscv32.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 95a5c97122b7c5bdeba61f2e890bae9a961dd4bf Mon Sep 17 00:00:00 2001 | 1 | From 95a5c97122b7c5bdeba61f2e890bae9a961dd4bf Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 8 Dec 2021 10:01:22 -0800 | 3 | Date: Wed, 8 Dec 2021 10:01:22 -0800 |
4 | Subject: [PATCH] Disable LTO on clang/riscv32 | 4 | Subject: [PATCH] Disable LTO on clang/riscv |
5 | 5 | ||
6 | With clang in OE LTO does not work as it does not seem to carry right | 6 | With clang in OE LTO does not work as it does not seem to carry right |
7 | target info and mixes ABIs | 7 | target info and mixes ABIs |
@@ -23,7 +23,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
23 | # Enabling LTO on Android causes the NDK bug. | 23 | # Enabling LTO on Android causes the NDK bug. |
24 | # NDK throws the warning: "argument unused during compilation: '-Wa,--noexecstack'" | 24 | # NDK throws the warning: "argument unused during compilation: '-Wa,--noexecstack'" |
25 | -if (NOT ANDROID_PLATFORM AND BUILD_SHARED_LIBS) | 25 | -if (NOT ANDROID_PLATFORM AND BUILD_SHARED_LIBS) |
26 | +if (NOT ANDROID_PLATFORM AND BUILD_SHARED_LIBS AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "(riscv32|arm)") | 26 | +if (NOT ANDROID_PLATFORM AND BUILD_SHARED_LIBS AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "(riscv32|riscv64|arm)") |
27 | set(TBB_IPO_COMPILE_FLAGS $<$<NOT:$<CONFIG:Debug>>:-flto>) | 27 | set(TBB_IPO_COMPILE_FLAGS $<$<NOT:$<CONFIG:Debug>>:-flto>) |
28 | set(TBB_IPO_LINK_FLAGS $<$<NOT:$<CONFIG:Debug>>:-flto>) | 28 | set(TBB_IPO_LINK_FLAGS $<$<NOT:$<CONFIG:Debug>>:-flto>) |
29 | endif() | 29 | endif() |