summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Smith <dizzyd@dizzyd.com>2010-02-10 14:05:52 -0700
committerDave Smith <dizzyd@dizzyd.com>2010-02-10 14:05:52 -0700
commit22d21f63d02cc9ce1e6a94754045ad9e78900267 (patch)
tree3f8375bc9e50da4f0fc15dd736767cfcaa6ad864 /src
parent268405d0dc49d6a0a2d0ea41014b045b3ff26eb0 (diff)
Append wordsize to the architecture string
Diffstat (limited to 'src')
-rw-r--r--src/rebar_utils.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl
index 7265058..1aff1a4 100644
--- a/src/rebar_utils.erl
+++ b/src/rebar_utils.erl
@@ -48,7 +48,8 @@ get_cwd() ->
is_arch(ArchRegex) ->
- Arch = erlang:system_info(system_architecture),
+ Words = integer_to_list(8 * erlang:system_info(wordsize)),
+ Arch = erlang:system_info(system_architecture) ++ "-" ++ Words,
case re:run(Arch, ArchRegex, [{capture, none}]) of
match ->
true;