From 05092202b35430f2b682fd40b7b5f1b3c773bb04 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Thu, 18 Aug 2016 23:52:34 +0200 Subject: port_compiler: generate clang compilation db In order for newer clang tools to work, they require the presence of a compilation database in the form of compile_commands.json. Therefore, we adapt port_compiler to write such a file. --- inttest/port/port_rt.erl | 1 + 1 file changed, 1 insertion(+) (limited to 'inttest') diff --git a/inttest/port/port_rt.erl b/inttest/port/port_rt.erl index c910e0e..afe991e 100644 --- a/inttest/port/port_rt.erl +++ b/inttest/port/port_rt.erl @@ -48,6 +48,7 @@ run(_Dir) -> %% test.so is created during first compile ?assertEqual(0, filelib:last_modified("priv/test.so")), ?assertMatch({ok, _}, retest_sh:run("./rebar compile", [])), + ?assertMatch(true, filelib:is_regular("compile_commands.json")), TestSo1 = filelib:last_modified("priv/test" ++ shared_library_file_extension(os:type())), ?assert(TestSo1 > 0), -- cgit v1.2.1