This repository has been archived by the owner on Mar 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add mips64 and mips64le support #656
Comments
diff --git a/vendor/github.com/boltdb/bolt/bolt_mips64.go b/vendor/github.com/boltdb/bolt/bolt_mips64.go
new file mode 100644
index 0000000..c1dfbac
--- /dev/null
+++ b/vendor/github.com/boltdb/bolt/bolt_mips64.go
@@ -0,0 +1,8 @@
+// +build mips64
+package bolt
+
+// maxMapSize represents the largest mmap size supported by Bolt.
+const maxMapSize = 0xFFFFFFFFFFFF // 256TB
+
+// maxAllocSize is the size used when creating array pointers.
+const maxAllocSize = 0x7FFFFFFF
diff --git a/vendor/github.com/boltdb/bolt/bolt_mips64le.go b/vendor/github.com/boltdb/bolt/bolt_mips64le.go
new file mode 100644
index 0000000..45be694
--- /dev/null
+++ b/vendor/github.com/boltdb/bolt/bolt_mips64le.go
@@ -0,0 +1,8 @@
+// +build mips64le
+package bolt
+
+// maxMapSize represents the largest mmap size supported by Bolt.
+const maxMapSize = 0xFFFFFFFFFFFF // 256TB
+
+// maxAllocSize is the size used when creating array pointers.
+const maxAllocSize = 0x7FFFFFFF this helped to get it compiling, but idk if these are sane values. |
lunny
pushed a commit
to go-gitea/gitea
that referenced
this issue
Feb 2, 2017
* Use local folder for xgo * Always do crosscompile and testing to fail early * Added mips* values for boltdb In order to get master building again I have applied these 2 additional files to boltdb. This should get dropped when boltdb/bolt#656 gets solved.
I also have the same issue for misp32 and misple. I fixed the compilation in a similar way as @tboerger did, but I came accross issue #646 (with undefined EDIT, I just noticed that #663 should answer the first part of my issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
As the title say, please add specific files for these architectures. I would do that but I have no idea where we can get the matching
maxMapSize
andmaxAllocSize
.The text was updated successfully, but these errors were encountered: