Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ensure compile_flags.hrl is built even without make

Windows by default does not have a working make. This patch ensures
pure Erlang apps can be built with PropEr support despite the lack
of a native make command.
  • Loading branch information...
commit 7cf6267ff4116008018b1027e31b1ae05f64b03d 1 parent df4af24
Dave Cottlehuber authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  rebar.config
View
3  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"}]}.
Please sign in to comment.
Something went wrong with that request. Please try again.