Skip to content

Build tips and tricks

ivg edited this page Dec 22, 2014 · 27 revisions

With the updated build system it is now possible to compile bap only with running make, so that if you're lucky Emacs user, then you need only hit C-c C-c et voila. But what if you would like to add some tricky configuration options. There're several possibilities to enumerate.

  • Use ./configure explicitly
  • Put all the needed stuff into your profile file, and forget about configuration:
export BAPCONFIGUREFLAGS="--prefix=`opam config var prefix` --enable-tests --enable-serialization"
  • Use emacs setenv command to set BAPCONFIGUREFLAGS variable to anything you want
  • Invoke make with appropriate variables set, e.g., BAPCONFIGUREFLAGS --enable-tests make && make test

You can also hijack any other flags, like BAPBUILDFLAGS, see Makefile for a complete set of available environment variables and commands.

Clone this wiki locally