smartdenovo: added patch to fix compile error (debian) (#17435)
This commit is contained in:
parent
a6abd530bd
commit
fa614404e6
2 changed files with 26 additions and 2 deletions
|
@ -0,0 +1,24 @@
|
|||
diff -Nur smartdenovo/wtlay.h smartdenovo-new/wtlay.h
|
||||
--- smartdenovo/wtlay.h 2020-07-09 02:47:13.503412360 +0800
|
||||
+++ smartdenovo-new/wtlay.h 2020-07-09 02:49:02.775412360 +0800
|
||||
@@ -503,17 +503,17 @@
|
||||
return e2;
|
||||
}
|
||||
|
||||
-inline int cut_biedge_strgraph_core(StringGraph *g, uint32_t node_id, int dir, uint32_t eidx, int closed){
|
||||
+static inline int cut_biedge_strgraph_core(StringGraph *g, uint32_t node_id, int dir, uint32_t eidx, int closed){
|
||||
edge_strgraph(g, node_id, dir, eidx)->closed = closed;
|
||||
edge_partner_strgraph(g, node_id, dir, eidx)->closed = closed;
|
||||
return 1;
|
||||
}
|
||||
|
||||
-inline int cut_biedge_strgraph(StringGraph *g, uint32_t node_id, int dir, uint32_t eidx){
|
||||
+static inline int cut_biedge_strgraph(StringGraph *g, uint32_t node_id, int dir, uint32_t eidx){
|
||||
return cut_biedge_strgraph_core(g, node_id, dir, eidx, 1);
|
||||
}
|
||||
|
||||
-inline int cut_biedge_strgraph2(StringGraph *g, uint32_t node_id, int dir, uint32_t eidx){
|
||||
+static inline int cut_biedge_strgraph2(StringGraph *g, uint32_t node_id, int dir, uint32_t eidx){
|
||||
return cut_biedge_strgraph_core(g, node_id, dir, eidx, 2);
|
||||
}
|
||||
|
|
@ -17,8 +17,8 @@ class Smartdenovo(MakefilePackage):
|
|||
|
||||
depends_on('sse2neon', when='target=aarch64:')
|
||||
|
||||
patch('aarch64.patch', when='target=aarch64:',
|
||||
sha256='7dd4bca28aafb0680cc1823aa58ac9000819993538e92628554666c4b3acc470')
|
||||
patch('aarch64.patch', sha256='7dd4bca28aafb0680cc1823aa58ac9000819993538e92628554666c4b3acc470', when='target=aarch64:')
|
||||
patch('inline-limit.patch', sha256='9f514ed72c37cf52ee2ffbe06f9ca1ed5a3e0819dab5876ecd83107c5e5bed81')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
install_files = [
|
||||
|
|
Loading…
Reference in a new issue