diff --git a/hls-fix-constexpr.patch b/hls-fix-constexpr.patch new file mode 100644 index 00000000000..b5272e58cef --- /dev/null +++ b/hls-fix-constexpr.patch @@ -0,0 +1,13 @@ +diff --git a/include/ap_int_base.h b/include/ap_int_base.h +index 091552a..1d30fea 100644 +--- a/include/ap_int_base.h ++++ b/include/ap_int_base.h +@@ -122,7 +122,7 @@ struct ap_int_base : public _AP_ROOT_TYPE<_AP_W, _AP_S> { + */ + typedef typename retval::Type RetType; + +- static const int width = _AP_W; ++ constexpr static const int width = _AP_W; + + template + struct RType { diff --git a/hls.spec b/hls.spec index e609e8e4c5a..96b854842ee 100644 --- a/hls.spec +++ b/hls.spec @@ -5,11 +5,13 @@ %define runpath_opts -m examples Source: git+https://github.com/%{github_user}/HLS_arbitrary_Precision_Types.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}-%{tag}.tgz Patch0: hls-fix-uninitialized +Patch1: hls-fix-constexpr Requires: gmake %prep %setup -n %{n}-%{realversion} %patch0 -p1 +%patch1 -p1 %build