aboutsummaryrefslogtreecommitdiffstats
path: root/devel/shiboken6/files/patch-cmake_ShibokenHelpers.cmake
blob: 61f94f4f5c2feb0e43eb841e764beed5accdc219 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Hunk 1: Suppress a lot of warnings for Clang when building PySide6.
Hunk 2: We don't need bash for a simple export command.

--- cmake/ShibokenHelpers.cmake.orig	2024-12-17 09:51:38 UTC
+++ cmake/ShibokenHelpers.cmake
@@ -55,7 +55,7 @@ else()
 else()
     set (gcc_warnings_options "-Wall -Wextra -Wno-strict-aliasing")
     # Clang has -Wno-bad-function-cast, but does not need it.
-    if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL  "GNU")
+    if ("${CMAKE_CXX_COMPILER_ID}" MATCHES GNU|Clang)
         set (gcc_warnings_options "${gcc_warnings_options} -Wno-cast-function-type")
     endif()
     if(CMAKE_HOST_UNIX AND NOT CYGWIN)
@@ -774,7 +774,7 @@ $@")
 $@")
     else()
         string(REPLACE ";" ":" path_dirs_native "${path_dirs_native}")
-        file(WRITE "${wrapper_path}" "#!/bin/bash
+        file(WRITE "${wrapper_path}" "#!/bin/sh
 export LD_LIBRARY_PATH=${path_dirs_native}:$LD_LIBRARY_PATH
 $@")
     endif()