Skip to content

Commit

Permalink
remove print
Browse files Browse the repository at this point in the history
  • Loading branch information
mihawk committed Oct 10, 2016
1 parent 5728594 commit 3d88784
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/compile/mad_port.erl
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ compile_port(Dir,Specs0,Config) ->
false -> Template = string:join(Files," ")
++ " CFLAGS LDFLAGS " ++ ei(Flavour,Out) ++ " -o " ++ Ouput,
Args = string:strip(replace_env(Template,Env),both,32),
mad:info("Args: ~p~n",[Args]),
mad:info("Env: ~p~n",[Env]),
%mad:info("Args: ~p~n",[Args]),
%mad:info("Env: ~p~n",[Env]),
{_,Status,Report} = sh:run("cc",string:tokens(Args," "),binary,Dir,Env),
case Status of
0 -> false;
_ -> mad:info("Port Compilation Error:~n" ++ io_lib:format("~ts",[Report]),[]), true
end;
_ -> mad:info("No Need recompile ~p~n",[{Ouput,Files}]),
_ -> %mad:info("No Need recompile ~p~n",[{Ouput,Files}]),
false
end
end || {Out,Patern} <- Specs ].
Expand Down

0 comments on commit 3d88784

Please sign in to comment.