Skip to content

Commit

Permalink
Fix Skia Scarthgap build
Browse files Browse the repository at this point in the history
Remove gcc specific flags for clang
  • Loading branch information
tronical committed May 14, 2024
1 parent 1bc0207 commit 4357384
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/slint_common.bbclass
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
TARGET_CFLAGS:remove = "-fcanon-prefix-map"

do_compile:prepend() {
export RUST_FONTCONFIG_DLOPEN=on
Expand All @@ -20,6 +21,7 @@ TARGET_CLANGCC_ARCH:remove = "-mel"
TARGET_CLANGCC_ARCH:append = "${@bb.utils.contains("TUNE_FEATURES", "bigendian", " -mbig-endian", " -mlittle-endian", d)}"
TARGET_CLANGCC_ARCH:remove:powerpc = "-mhard-float"
TARGET_CLANGCC_ARCH:remove:powerpc = "-mno-spe"
TARGET_CLANGCC_ARCH:remove = "-fcanon-prefix-map"

# Add -I=/usr/include/freetype2 as skia has hardcoded it to -I/usr/include/freetype2, which
# would locate freetype in the host system, not the sysroot target.
Expand Down

0 comments on commit 4357384

Please sign in to comment.