diff --git a/examples/cl_compile.erl b/examples/cl_compile.erl index 0f84186..a437d83 100644 --- a/examples/cl_compile.erl +++ b/examples/cl_compile.erl @@ -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),