diff options
author | Denis Reva <denis7774@gmail.com> | 2022-12-22 11:45:51 +0500 |
---|---|---|
committer | Denis Reva <denis7774@gmail.com> | 2022-12-22 11:46:04 +0500 |
commit | 4b35f21d43dcb365da67fce9899e659a21fa79a5 (patch) | |
tree | 4b8b6a11239c6564d2baf2e9f8aa7d64c4b1d76d /media-libs/amdvlk | |
parent | net-p2p/ipfs-cluster: drop to maintainer-needed (diff) | |
download | guru-4b35f21d43dcb365da67fce9899e659a21fa79a5.tar.gz guru-4b35f21d43dcb365da67fce9899e659a21fa79a5.tar.bz2 guru-4b35f21d43dcb365da67fce9899e659a21fa79a5.zip |
media-libs/amdvlk: Disabled adding werror on it's own
Closes: https://bugs.gentoo.org/887777
Signed-off-by: Denis Reva <denis7774@gmail.com>
Diffstat (limited to 'media-libs/amdvlk')
-rw-r--r-- | media-libs/amdvlk/amdvlk-2022.4.4.ebuild | 9 | ||||
-rw-r--r-- | media-libs/amdvlk/files/amdvlk-2022.4.4-r1-disable-Werror.patch | 13 |
2 files changed, 21 insertions, 1 deletions
diff --git a/media-libs/amdvlk/amdvlk-2022.4.4.ebuild b/media-libs/amdvlk/amdvlk-2022.4.4.ebuild index 38fe858d0..27a9903d6 100644 --- a/media-libs/amdvlk/amdvlk-2022.4.4.ebuild +++ b/media-libs/amdvlk/amdvlk-2022.4.4.ebuild @@ -68,6 +68,7 @@ PATCHES=( "${FILESDIR}/amdvlk-2022.4.2-license-path.patch" #878803 "${FILESDIR}/amdvlk-2022.4.2-reduced-llvm-installations.patch" "${FILESDIR}/amdvlk-2022.4.2-reduced-llvm-installations-part2.patch" + "${FILESDIR}/amdvlk-2022.4.4-r1-disable-Werror.patch" #887777 ) src_prepare() { @@ -90,11 +91,17 @@ multilib_src_configure() { -DVKI_RAY_TRACING=$(usex raytracing) -DLLVM_VERSION_SUFFIX="-amdvlk" -DLLVM_HOST_TRIPLE="${CHOST}" + -DLLVM_ENABLE_WERROR=OFF + -DSPVGEN_ENABLE_WERROR=OFF + -DENABLE_WERROR=OFF + -DVAM_ENABLE_WERROR=OFF + -DICD_ANALYSIS_WARNINGS_AS_ERRORS=OFF + -DMETROHASH_ENABLE_WERROR=OFF -DBUILD_SHARED_LIBS=OFF #LLVM parts don't support shared libs -DPython3_EXECUTABLE="${PYTHON}" -DPACKAGE_VERSION="${PV}" -DPACKAGE_NAME="${PN}" - -DLLVM_INSTALL_TOOLCHAIN_ONLY=On #Disable installation of various LLVM parts which we had to clean up. + -DLLVM_INSTALL_TOOLCHAIN_ONLY=ON #Disable installation of various LLVM parts which we had to clean up. -Wno-dev ) cmake_src_configure diff --git a/media-libs/amdvlk/files/amdvlk-2022.4.4-r1-disable-Werror.patch b/media-libs/amdvlk/files/amdvlk-2022.4.4-r1-disable-Werror.patch new file mode 100644 index 000000000..01c28e0ea --- /dev/null +++ b/media-libs/amdvlk/files/amdvlk-2022.4.4-r1-disable-Werror.patch @@ -0,0 +1,13 @@ +diff --git a/pal/shared/devdriver/cmake/DevDriver.cmake b/pal/shared/devdriver/cmake/DevDriver.cmake +index b3f2e7e48..cbd9f7839 100644 +--- a/pal/shared/devdriver/cmake/DevDriver.cmake ++++ b/pal/shared/devdriver/cmake/DevDriver.cmake +@@ -111,7 +111,7 @@ function(apply_devdriver_warnings name) + target_compile_options(${name} PRIVATE + -Wall # Enable all warnings. + -Wextra # Enable extra warnings that are not enabled by -Wall. +- -Werror # warning as error ++ #-Werror # warning as error + ) + elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") + target_compile_options(${name} PRIVATE |