Implementation of my own BIF function

Raimo Niskanen raimo+erlang-questions@REDACTED
Fri Mar 13 09:10:53 CET 2020


On Thu, Mar 12, 2020 at 07:04:20PM -0400, Andrew Thompson wrote:
> On Thu, Mar 12, 2020 at 09:44:11PM +0300, Sergey Loguntsov wrote:
> > Hi, everybody.
: :
> > They are committed as part of sources (seems this is big crutch).
> > So my question is what is right way to update preloaded modules (beam
> > files) ?
> > May be there is another way to have BIF function outside from Erlang
> > sources ? and building them together ?
> 
> You can use `./otp_build update_preloaded` if you really want to do this
> which will recompile the precompiled beams for you. However be careful
> as it will also make a git commit for you(??).

There is a flag for that:

    ./otp_build update_preloaded --no-commit

I use it constantly.  Then add the files that I have affected, commit,
reset --hard HEAD, build emulator.

> 
> Andrew

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB


More information about the erlang-questions mailing list