]> sigrok.org Git - sigrok-util.git/blob - cross-compile/mingw/pulseview-boost-numeric-literals.patch
sigrok-fwextract-kingst-la2016: concentrate RCC flags in one spot
[sigrok-util.git] / cross-compile / mingw / pulseview-boost-numeric-literals.patch
1 Newer boost versions phrase numeric literals in ways that are not
2 supported out of the box. Pass a compiler switch which unbreaks the
3 Pulseview build with current MXE (as of 2022-02). See bug 1771.
4
5 TODO It is yet to get determined whether the CMakeLists.txt change is
6 universally applicable to all supported platforms and compiler versions
7 that are used with Pulseview (after all non-default compiler behaviour
8 is enabled). When the pulseview.git repository contains the change,
9 then this patch becomes obsolete.
10
11  CMakeLists.txt | 1 +
12  1 file changed, 1 insertion(+)
13
14 diff --git a/CMakeLists.txt b/CMakeLists.txt
15 index 7791b1b138da..d43681c195cf 100644
16 --- a/CMakeLists.txt
17 +++ b/CMakeLists.txt
18 @@ -488,6 +488,7 @@ add_definitions(-D__STDC_LIMIT_MACROS)
19  add_definitions(-Wall -Wextra)
20  add_definitions(-std=c++11)
21  add_definitions(-DBOOST_MATH_DISABLE_FLOAT128=1)
22 +add_definitions(-fext-numeric-literals)
23  if(WIN32)
24         add_definitions(-Wa,-mbig-obj -O3)
25  endif()