aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-04-26 12:47:43 +0200
committerBjörn Gustavsson <[email protected]>2016-04-27 10:29:25 +0200
commit856e0abc93b1234ccb8cb48383b4fc07a0624b4c (patch)
treede06784672396c330f4690e1a90e4865be78c4f8 /lib
parent75fa8578cb847c15a10360523ecdbaabf507128d (diff)
downloadotp-856e0abc93b1234ccb8cb48383b4fc07a0624b4c.tar.gz
otp-856e0abc93b1234ccb8cb48383b4fc07a0624b4c.tar.bz2
otp-856e0abc93b1234ccb8cb48383b4fc07a0624b4c.zip
compilation_SUITE: Run the Core linter for all compilations
Diffstat (limited to 'lib')
-rw-r--r--lib/compiler/test/compilation_SUITE.erl13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/compiler/test/compilation_SUITE.erl b/lib/compiler/test/compilation_SUITE.erl
index 6961e625fd..fdb264469a 100644
--- a/lib/compiler/test/compilation_SUITE.erl
+++ b/lib/compiler/test/compilation_SUITE.erl
@@ -245,8 +245,8 @@ try_it(StartNode, Module, Timetrap, Conf) ->
atom_to_list(Module)),
Out = proplists:get_value(priv_dir,Conf),
io:format("Compiling: ~s\n", [Src]),
- CompRc0 = compile:file(Src, [clint,{outdir,Out},report,
- bin_opt_info|OtherOpts]),
+ CompRc0 = compile:file(Src, [clint0,clint,{outdir,Out},report,
+ bin_opt_info|OtherOpts]),
io:format("Result: ~p\n",[CompRc0]),
{ok,_Mod} = CompRc0,
@@ -265,7 +265,8 @@ try_it(StartNode, Module, Timetrap, Conf) ->
ct:timetrap(Timetrap),
io:format("Compiling (without optimization): ~s\n", [Src]),
CompRc1 = compile:file(Src,
- [no_copt,no_postopt,{outdir,Out},report|OtherOpts]),
+ [no_copt,no_postopt,
+ {outdir,Out},report|OtherOpts]),
io:format("Result: ~p\n",[CompRc1]),
{ok,_Mod} = CompRc1,
@@ -273,8 +274,9 @@ try_it(StartNode, Module, Timetrap, Conf) ->
ct:timetrap(Timetrap),
io:format("Compiling (with old inliner): ~s\n", [Src]),
- CompRc2 = compile:file(Src, [{outdir,Out},report,bin_opt_info,
- {inline,1000}|OtherOpts]),
+ CompRc2 = compile:file(Src, [clint,
+ {outdir,Out},report,bin_opt_info,
+ {inline,1000}|OtherOpts]),
io:format("Result: ~p\n",[CompRc2]),
{ok,_Mod} = CompRc2,
ok = rpc:call(Node, ?MODULE, load_and_call, [Out, Module]),
@@ -465,6 +467,7 @@ compile_compiler(Files, OutDir, Version, InlineOpts) ->
io:format("~ts", [code:which(compile)]),
io:format("Compiling ~s into ~ts", [Version,OutDir]),
Opts = [report,
+ clint0,clint,
bin_opt_info,
{outdir,OutDir},
{d,'COMPILER_VSN',"\""++Version++"\""},