Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Detect dreyfus/hastings correctly
The code:lib_dir test only works if those projects are compiled first,
which is not guaranteed.
  • Loading branch information
rnewson committed Oct 21, 2019
1 parent 846783b commit c800e4afcdab617ca3629bb7dcdc55209447d3d0
Showing 1 changed file with 2 additions and 2 deletions.
@@ -10,8 +10,8 @@
% License for the specific language governing permissions and limitations under
% the License.

HaveDreyfus = code:lib_dir(dreyfus) /= {error, bad_name}.
HaveHastings = code:lib_dir(hastings) /= {error, bad_name}.
HaveDreyfus = element(1, file:list_dir("../dreyfus")) == ok.
HaveHastings = element(1, file:list_dir("../hastings")) == ok.

CurrOpts = case lists:keyfind(erl_opts, 1, CONFIG) of
{erl_opts, Opts} -> Opts;

0 comments on commit c800e4a

Please sign in to comment.