Skip to content

Commit

Permalink
added option -cl-kernel-arg-info to the default options in cl_compile…
Browse files Browse the repository at this point in the history
…:file/2 when version 1.2 is detected, the kernel_arg_info the contains interesting info
  • Loading branch information
tonyrog committed May 13, 2014
1 parent b3e6896 commit 79ad820
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion examples/cl_compile.erl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@
%% compile File into binary,

file(File) -> file(File,all).
file(File,Type) -> file(File,Type,"").
file(File,Type) ->
case lists:member({1,2}, cl:versions()) of
true ->
file(File,Type,"-cl-kernel-arg-info");
false ->
file(File,Type,"")
end.

file(File,Type,Options) ->
Clu = clu:setup(Type),
Expand Down

0 comments on commit 79ad820

Please sign in to comment.