[nim-dev] Re: ffi and system.compiles proc

  • From: Jehan <behrends@xxxxxxxxx>
  • To: nim-dev@xxxxxxxxxxxxx
  • Date: Mon, 14 Dec 2015 13:09:42 +0000

The ``compiled(p)`` predicate checks (and can only check) if the argument is
valid Nim code. It cannot autodetect the availability of external C headers,
libraries, etc. For that, you'll need a tool such as autoconf (though I'm
personally leaning towards `autosetup <https://msteveb.github.io/autosetup/>`_
these days).

Other related posts: