From 70bdb9e79429fb347c5437743d0e8f6851e0783d Mon Sep 17 00:00:00 2001 From: Kostis Sagonas Date: Mon, 27 Mar 2017 15:10:20 +0200 Subject: Add a no_native option wherever there is an on_load This is a poor man's solution that allows to build and test the system with all files compiled to native code simply by setting the ERL_COMPILER_OPTS environment variable. Better solutions, like automatically setting the no_native option whenever the compiler sees an on_load attribute, obviously exist but require more time to implement. --- lib/crypto/src/crypto.erl | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/crypto') diff --git a/lib/crypto/src/crypto.erl b/lib/crypto/src/crypto.erl index ce8add6559..d322765dff 100644 --- a/lib/crypto/src/crypto.erl +++ b/lib/crypto/src/crypto.erl @@ -56,6 +56,7 @@ %%-type ec_curve() :: ec_named_curve() | ec_curve_spec(). %%-type ec_key() :: {Curve :: ec_curve(), PrivKey :: binary() | undefined, PubKey :: ec_point() | undefined}. +-compile(no_native). -on_load(on_load/0). -define(CRYPTO_NIF_VSN,302). -- cgit v1.2.3