Skip to content

Commit

Permalink
nonclangable: Fix append and override order
Browse files Browse the repository at this point in the history
VAR:append:<OVERRIDES> is the right way to use it

Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed Oct 26, 2024
1 parent a641153 commit e78217a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions conf/nonclangable.conf
Original file line number Diff line number Diff line change
Expand Up @@ -329,29 +329,29 @@ TUNE_CCARGS:append:pn-btrfs-tools:toolchain-clang = " -Werror=unused-command-lin
# BF16_TO_F32_UNARY_OP_WRAPPER(vec_sqrt, a);
# ^~~~~~~~
# vec_rsqrt
TUNE_CCARGS:pn-ceres-solver:append:toolchain-clang:powerpc = " -mno-altivec"
TUNE_CCARGS:pn-opencv:append:toolchain-clang:powerpc = " -mno-altivec"
CXXFLAGS:pn-libeigen:append:toolchain-clang:powerpc = " -DEIGEN_ALTIVEC_DISABLE_MMA"
TUNE_CCARGS:append:pn-ceres-solver:toolchain-clang:powerpc = " -mno-altivec"
TUNE_CCARGS:append:pn-opencv:toolchain-clang:powerpc = " -mno-altivec"
CXXFLAGS:append:pn-libeigen:toolchain-clang:powerpc = " -DEIGEN_ALTIVEC_DISABLE_MMA"

# external/amber/src/src/amber.cc:53:41: error: unsafe pointer arithmetic [-Werror,-Wunsafe-buffer-usage]
# vk-wrappers-1-0.inc:74:34: error: cast from 'PFN_vkVoidFunction' (aka 'void (*)()') to 'PFN_vkCmdEndRenderPass'
# (aka 'void (*)(VkCommandBuffer_T *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
CXXFLAGS:pn-opengl-es-cts:append:toolchain-clang = " -Wno-error=unsafe-buffer-usage -Wno-error=cast-function-type-strict"
CXXFLAGS:pn-vulkan-cts:append:toolchain-clang = " -Wno-error=unsafe-buffer-usage -Wno-error=cast-function-type-strict"
CXXFLAGS:append:pn-opengl-es-cts:toolchain-clang = " -Wno-error=unsafe-buffer-usage -Wno-error=cast-function-type-strict"
CXXFLAGS:append:pn-vulkan-cts:toolchain-clang = " -Wno-error=unsafe-buffer-usage -Wno-error=cast-function-type-strict"
# Wno-error=overriding-option needed with clang-20
# see https://github.com/jtv/libpqxx/issues/738 for deprecated-declarations ( not needed with clang19+ )
CXXFLAGS:pn-vulkan-samples:append:toolchain-clang = " -Wno-error=overriding-option -Wno-error=deprecated-declarations"
CXXFLAGS:append:pn-vulkan-samples:toolchain-clang = " -Wno-error=overriding-option -Wno-error=deprecated-declarations"
# Workaround for https://gitlab.gnome.org/GNOME/gtk/-/issues/6033
CFLAGS:pn-gtk4:append:toolchain-clang = " -Wno-error=int-conversion"
CFLAGS:append:pn-gtk4:toolchain-clang = " -Wno-error=int-conversion"

# usr/include/glib-2.0/glib/glib-autocleanups.h:49:1: error: cast from 'void (*)(void)' to 'GDestroyNotify'
# (aka 'void (*)(void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
CFLAGS:pn-pidgin-sipe:append:toolchain-clang = " -Wno-error=cast-function-type-strict"
CFLAGS:append:pn-pidgin-sipe:toolchain-clang = " -Wno-error=cast-function-type-strict"

# 32bit builds of nodejs needs this warning to be disabled with clang16 until
# v8 engine in nodejs moved beyong this commit
# https://github.com/v8/v8/commit/d15d49b09dc7aef9edcc4cf6a0cb2b77a0db203f
CXXFLAGS:pn-nodejs:append:toolchain-clang = " -Wno-error=enum-constexpr-conversion"
CXXFLAGS:append:pn-nodejs:toolchain-clang = " -Wno-error=enum-constexpr-conversion"
# deps/TinyDeflate/gunzip.hh:1144:35: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
CXXFLAGS:append:pn-doxygen:toolchain-clang = " -Wno-error=missing-template-arg-list-after-template-kw"

Expand Down Expand Up @@ -511,7 +511,7 @@ STRIP:pn-python3-matplotlib:toolchain-clang:riscv32 = "${HOST_PREFIX}llvm-strip"

# Need OBJDUMP during do_package_qa which is set to llvm-objdump with meta-clang
# it might work with GNU objdump since it falls back to one from build host
DEPENDS:pn-linux-firmware:append:toolchain-clang = " clang-native"
DEPENDS:append:pn-linux-firmware:toolchain-clang = " clang-native"

# Needs for solving fopenmp issues
DEPENDS:append:pn-pixman:mips:toolchain-clang = " openmp"
Expand Down

0 comments on commit e78217a

Please sign in to comment.