Debian Codegraph @

debian/patches/i386

raw
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Alex Myczko <[email protected]>
3 Date: May, 14 2026 20:28:29 +0000
4 Subject: [PATCH] <short summary of the patch>
5
6 TODO: Put a short summary on the line above and replace this paragraph
7 with a longer explanation of this change. Complete the meta-information
8 with other relevant fields (see below for details). To make it easier, the
9 information below has been extracted from the changelog. Adjust it or drop
10 it.
11
12 Bug-Debian: https://bugs.debian.org/1131229
13 ---
14 The information above should follow the Patch Tagging Guidelines, please
15 checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
16 are templates for supplementary fields that you might want to add:
17
18 Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
19 Bug: <upstream-bugtracker-url>
20 Bug-<Vendor>: <vendor-bugtracker-url>
21 Forwarded: (no|not-needed|<patch-forwarded-url>)
22 Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>)
23 Reviewed-By: <name and email of someone who approved/reviewed the patch>
24
25 --- colmap-4.0.4.orig/src/thirdparty/SiftGPU/CMakeLists.txt
26 +++ colmap-4.0.4/src/thirdparty/SiftGPU/CMakeLists.txt
27 @@ -1,7 +1,25 @@
28 add_compile_definitions(SIFTGPU_NO_DEVIL)
29
30 if(SIMD_ENABLED AND IS_X86)
31 - add_compile_definitions(SIFTGPU_USE_SSE_FOR)
32 + if(MSVC)
33 + set(SIFTGPU_USE_SSE_FOR TRUE)
34 + else()
35 + include(CheckCXXSourceCompiles)
36 + check_cxx_source_compiles("
37 + #ifndef __SSE__
38 + #error SSE is not enabled for this compiler target.
39 + #endif
40 + #include <xmmintrin.h>
41 + int main() {
42 + __m128 value = _mm_setzero_ps();
43 + return static_cast<int>(_mm_cvtss_f32(value));
44 + }" SIFTGPU_HAS_TARGET_SSE)
45 + set(SIFTGPU_USE_SSE_FOR ${SIFTGPU_HAS_TARGET_SSE})
46 + endif()
47 +
48 + if(SIFTGPU_USE_SSE_FOR)
49 + add_compile_definitions(SIFTGPU_USE_SSE_FOR)
50 + endif()
51 if(MSVC)
52 add_compile_definitions(__SSE__)
53 endif()