]> sigrok.org Git - sigrok-util.git/blame - 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
CommitLineData
754b6dff
GS
1Newer boost versions phrase numeric literals in ways that are not
2supported out of the box. Pass a compiler switch which unbreaks the
3Pulseview build with current MXE (as of 2022-02). See bug 1771.
4
5TODO It is yet to get determined whether the CMakeLists.txt change is
6universally applicable to all supported platforms and compiler versions
7that are used with Pulseview (after all non-default compiler behaviour
8is enabled). When the pulseview.git repository contains the change,
9then this patch becomes obsolete.
10
11 CMakeLists.txt | 1 +
12 1 file changed, 1 insertion(+)
13
14diff --git a/CMakeLists.txt b/CMakeLists.txt
15index 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()