File: 0007-Define-ASTCENC_BIG_ENDIAN-for-all-backends.patch

package info (click to toggle)
astc-encoder 5.3.0%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 43,260 kB
  • sloc: ansic: 44,647; cpp: 24,160; python: 3,403; sh: 85; makefile: 26
file content (69 lines) | stat: -rw-r--r-- 2,444 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Tue, 19 Aug 2025 11:25:12 +0200
Subject: Define ASTCENC_BIG_ENDIAN for all backends

---
 Source/UnitTest/cmake_core.cmake | 12 ++++++------
 Source/cmake_core.cmake          | 12 ++++++------
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/Source/UnitTest/cmake_core.cmake b/Source/UnitTest/cmake_core.cmake
index 52c617f..690ba7d 100644
--- a/Source/UnitTest/cmake_core.cmake
+++ b/Source/UnitTest/cmake_core.cmake
@@ -88,6 +88,12 @@ target_compile_options(${ASTCENC_TEST}
         $<${is_gnu_fe}:-Wno-reserved-identifier>
         $<${is_gnu_fe}:-Wno-global-constructors>)
 
+if(${ASTCENC_BIG_ENDIAN})
+    target_compile_definitions(${ASTCENC_TEST}
+        PRIVATE
+            ASTCENC_BIG_ENDIAN=1)
+endif()
+
 # Set up configuration for SIMD ISA builds
 if(${ASTCENC_ISA_SIMD} MATCHES "none")
     target_compile_definitions(${ASTCENC_TEST}
@@ -99,12 +105,6 @@ if(${ASTCENC_ISA_SIMD} MATCHES "none")
             ASTCENC_POPCNT=0
             ASTCENC_F16C=0)
 
-    if(${ASTCENC_BIG_ENDIAN})
-        target_compile_definitions(${ASTCENC_TEST}
-            PRIVATE
-                ASTCENC_BIG_ENDIAN=1)
-    endif()
-
 elseif(${ASTCENC_ISA_SIMD} MATCHES "neon")
     target_compile_definitions(${ASTCENC_TEST}
         PRIVATE
diff --git a/Source/cmake_core.cmake b/Source/cmake_core.cmake
index 7cb43c5..72c0e43 100644
--- a/Source/cmake_core.cmake
+++ b/Source/cmake_core.cmake
@@ -258,6 +258,12 @@ macro(astcenc_set_properties ASTCENC_TARGET_NAME ASTCENC_VENEER_TYPE)
                 MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
     endif()
 
+    if(${ASTCENC_BIG_ENDIAN})
+        target_compile_definitions(${ASTCENC_TARGET_NAME}
+            PRIVATE
+                ASTCENC_BIG_ENDIAN=1)
+    endif()
+
     # Set up configuration for SIMD ISA builds
     if(${ASTCENC_ISA_SIMD} MATCHES "none")
         target_compile_definitions(${ASTCENC_TARGET_NAME}
@@ -269,12 +275,6 @@ macro(astcenc_set_properties ASTCENC_TARGET_NAME ASTCENC_VENEER_TYPE)
                 ASTCENC_POPCNT=0
                 ASTCENC_F16C=0)
 
-        if(${ASTCENC_BIG_ENDIAN})
-            target_compile_definitions(${ASTCENC_TARGET_NAME}
-                PRIVATE
-                    ASTCENC_BIG_ENDIAN=1)
-        endif()
-
     elseif(${ASTCENC_ISA_SIMD} MATCHES "neon")
         target_compile_definitions(${ASTCENC_TARGET_NAME}
             PRIVATE