[extra-cmake-modules] [Bug 444247] CheckAtomic doesn't set LLVM_COMPILER_IS_GCC_COMPATIBLE and fails check on Apple Clang

amyspark bugzilla_noreply at kde.org
Thu Mar 17 14:52:29 GMT 2022


https://bugs.kde.org/show_bug.cgi?id=444247

--- Comment #2 from amyspark <amy at amyspark.me> ---
Git commit 1418085400e95b5a13218e98d318333dd591e8b9 by L. E. Segovia, on behalf
of Sharaf Zaman.
Committed on 17/03/2022 at 14:50.
Pushed by lsegovia into branch 'krita/5.0'.

Fix build on linux clang targets

In CheckAtomic.cmake we include is_lock_free because these routines
don't seem to be included in the compiler's "simple atomics". This
triggers a failure in clang toolchain, forcing it to link libatomic.

Resulting in error: ld.lld: error: undefined symbol: __atomic_is_lock_free
Related: bug 444547
(cherry picked from commit 0b755beaa1fdba03d38f887b93a15a58fc0830c7)

M  +1    -0    cmake/modules/CheckAtomic.cmake
M  +2    -4    libs/image/CMakeLists.txt

https://invent.kde.org/graphics/krita/commit/1418085400e95b5a13218e98d318333dd591e8b9

-- 
You are receiving this mail because:
You are watching all bug changes.



More information about the kde-mac mailing list