diff options
author | Leon Woestenberg <leon@sidebranch.com> | 2020-09-29 23:12:37 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-09-30 15:50:37 -0700 |
commit | a328000fc6091cc6ca2070cb16c0ed2313efa72e (patch) | |
tree | ab0ac710d6d7e68ded39001f965f09f1d1e19558 /classes | |
parent | 9c8f56ceabfbf04590217d678f996b974996d414 (diff) | |
download | meta-clang-a328000fc6091cc6ca2070cb16c0ed2313efa72e.tar.gz |
classes/clang.bbclass: Remove -mmusl flag from toolchain.cmake.
The -mmusl flag is GCC specific, Clang supports MUSL differently.
Prevents clang-11: error: unknown argument: '-mmusl'
Verified it does not affect the GCC toolchain.cmake build.
Signed-off-by: Leon Woestenberg <leon@sidebranch.com>
Diffstat (limited to 'classes')
-rw-r--r-- | classes/clang.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/clang.bbclass b/classes/clang.bbclass index a00eef6..c7995f4 100644 --- a/classes/clang.bbclass +++ b/classes/clang.bbclass | |||
@@ -100,5 +100,6 @@ cmake_do_generate_toolchain_file_append_toolchain-clang () { | |||
100 | cat >> ${WORKDIR}/toolchain.cmake <<EOF | 100 | cat >> ${WORKDIR}/toolchain.cmake <<EOF |
101 | set( CMAKE_CLANG_TIDY ${CLANG_TIDY} ) | 101 | set( CMAKE_CLANG_TIDY ${CLANG_TIDY} ) |
102 | EOF | 102 | EOF |
103 | sed -i 's/ -mmusl / /g' ${WORKDIR}/toolchain.cmake | ||
103 | } | 104 | } |
104 | 105 | ||