浏览代码

Append os family to arch string

pull/3/head
Tuncer Ayaz 13 年前
父节点
当前提交
4e9e89bd0d
共有 2 个文件被更改,包括 7 次插入2 次删除
  1. +1
    -1
      dialyzer_reference
  2. +6
    -1
      src/rebar_utils.erl

+ 1
- 1
dialyzer_reference 查看文件

@ -1,2 +1,2 @@
rebar_utils.erl:158: Call to missing or unexported function escript:foldl/3
rebar_utils.erl:159: Call to missing or unexported function escript:foldl/3

+ 6
- 1
src/rebar_utils.erl 查看文件

@ -71,7 +71,8 @@ is_arch(ArchRegex) ->
get_arch() ->
Words = wordsize(),
erlang:system_info(otp_release) ++ "-"
++ erlang:system_info(system_architecture) ++ "-" ++ Words.
++ erlang:system_info(system_architecture) ++ "-" ++ Words
++ "-" ++ os_family().
wordsize() ->
try erlang:system_info({wordsize, external}) of
@ -284,6 +285,10 @@ delayed_halt(Code) ->
%% Internal functions
%% ====================================================================
os_family() ->
{OsFamily, _} = os:type(),
atom_to_list(OsFamily).
get_deprecated_3(Get, Config, OldOpt, NewOpt, Default, When) ->
case Get(Config, NewOpt, Default) of
Default ->

正在加载...
取消
保存