You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2015/03/16 13:43:29 UTC

snappy commit: updated refs/heads/master to 8e008be

Repository: couchdb-snappy
Updated Branches:
  refs/heads/master b344f9554 -> 8e008be13


Support big-endian builds


Project: http://git-wip-us.apache.org/repos/asf/couchdb-snappy/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-snappy/commit/8e008be1
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-snappy/tree/8e008be1
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-snappy/diff/8e008be1

Branch: refs/heads/master
Commit: 8e008be130ca2bb929b676cd2450a0d88b9a7cd9
Parents: b344f95
Author: Bryan Chan <br...@gmail.com>
Authored: Tue Feb 17 09:41:27 2015 -0500
Committer: Bryan Chan <br...@gmail.com>
Committed: Wed Feb 18 21:34:37 2015 -0500

----------------------------------------------------------------------
 rebar.config.script | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-snappy/blob/8e008be1/rebar.config.script
----------------------------------------------------------------------
diff --git a/rebar.config.script b/rebar.config.script
new file mode 100644
index 0000000..f7fc761
--- /dev/null
+++ b/rebar.config.script
@@ -0,0 +1,12 @@
+case <<1:16/native>> of
+    <<1,0>> ->
+        CONFIG;
+    <<0,1>> ->
+        CXXFLAGS = [{"CXXFLAGS", "$CXXFLAGS -DWORDS_BIGENDIAN"}],
+        case lists:keyfind(port_env, 1, CONFIG) of
+            false ->
+                CONFIG ++ [{port_env, CXXFLAGS}];
+            {K, V} ->
+                lists:keyreplace(K, 1, CONFIG, {K, V ++ CXXFLAGS})
+        end
+end.