Selaa lähdekoodia

add hrl-triggered recompiling to 'eunit' build as well

pull/3/head
Bryan Fink 15 vuotta sitten
vanhempi
commit
badcc228bd
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. +1
    -1
      src/rebar_erlc_compiler.erl
  2. +1
    -1
      src/rebar_eunit.erl

+ 1
- 1
src/rebar_erlc_compiler.erl Näytä tiedosto

@ -28,7 +28,7 @@
clean/2]).
%% make available for rebar_eunit until there is a better option
-export([do_compile/8, compile_opts/2]).
-export([do_compile/8, compile_opts/2, list_hrls/2]).
-include("rebar.hrl").

+ 1
- 1
src/rebar_eunit.erl Näytä tiedosto

@ -51,7 +51,7 @@ eunit(Config, _File) ->
%% Compile all erlang from src/ into ?EUNIT_DIR
rebar_erlc_compiler:do_compile(Config, "src/*.erl", ?EUNIT_DIR, ".erl", ".beam",
undefined, fun compile_erl/2,
fun rebar_erlc_compiler:list_hrls/2, fun compile_erl/2,
rebar_config:get_list(Config, erl_first_files, [])),
%% Build a list of all the .beams in ?EUNIT_DIR -- use this for cover

Ladataan…
Peruuta
Tallenna