So here is my tests case:
I start with this file:
//
// tgmp.flx
//
include "gmp";
open Gmp;
var x : mpz = mpz_of_int 42;
var y = x + x;
println$ y;
//===
and I want to do this:
I think I am going to change how --target works.
At present, it selects a subdirectory of FLX_INSTALL_DIR
and makes that FLX_TARGET_DIR.
Instead, you should use
--target=mytarget
will just be a short hand for
--felix=FLX_PROFILE_DIR/config/mytarget.fpc
In other words, it has no
OK, so I think the new setup if finally working.
config.flx is moved to
lib/std/felix/config.flx
and it supplies two variables:
FLX_SHARE_DIR
FLX_TARGET_DIR
to its client. Now, there is one more critical directory: the cache.
At present that's calculated by
lib/
So the next patch, the config will return two independent directories:
FLX_INSTALL_DIR
FLX_TARGET_DIR
The first is mainly to get
FLX_INSTALL_DIR/share
and the next change will be to eliminate the FLX_INSTALL_DIR variable.
You can still set the FLX_INSTALL_DIR, but it wil