diff --git a/rebar.config b/rebar.config index 076f662d..d17ac7ca 100644 --- a/rebar.config +++ b/rebar.config @@ -34,5 +34,6 @@ warn_missing_spec, warn_untyped_record]}. {dialyzer_opts, [{warnings, [unmatched_returns]}]}. -{pre_hooks, [{compile, "make include/compile_flags.hrl"}]}. +{pre_hooks, [{"(linux|bsd|darwin|solaris)", compile, "make include/compile_flags.hrl"}, + {"win32", compile, "escript.exe write_compile_flags include/compile_flags.hrl"}]}. {post_hooks, [{clean, "./clean_doc.sh"}]}.