summaryrefslogtreecommitdiff
path: root/inttest
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2016-08-18 23:52:34 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2016-08-19 14:17:30 +0200
commit05092202b35430f2b682fd40b7b5f1b3c773bb04 (patch)
tree4e8b4e0f5ddbce52f83d0ed9cb728a563b8835ff /inttest
parentb62370b97b27296e8a6cfff325995454cc47ef4f (diff)
downloadrebar-05092202b35430f2b682fd40b7b5f1b3c773bb04.tar.gz
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.
Diffstat (limited to 'inttest')
-rw-r--r--inttest/port/port_rt.erl1
1 files changed, 1 insertions, 0 deletions
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),