I am thinking of changing the install tree to this

        /usr/local/lib/felix/host/felix-latest/....

[replace / with \ on windows]

or perhaps 

felix-latest/host/...

not sure whether to put the target or the version first.
Might have to change the cache address in a similar way.

The idea is that you can say:

flx --target=platform ....

where the default platform is host. The host platform is configured
to edit, compile, and run on your desktop machine (as detected by
the build system).

The platform name would be arbitrary, although it may pay to copy
the idea gcc uses assuming gcc is halfway reasonable about 
cross compilation. I think that's:

        i686-apple-darwin10-gcc-4.2.1

on my box:

        processor-vendor-os-product-version


On my box at least I want to test:

* both 32 and 64 bit targets
* both gcc and clang

which is 4 distinct platforms .. all of which are technically still "host"
platforms. 

Actually, since most of the code is platform independent it would probably be 
more like:

        /usr/local/lib/felix/felix-latest/share/...
        /usr/local/lib/felix/felix-latest/i686-apple-darwin10-gcc-4.2.1

or something. I would like to remove platform configuration code from the
Felix library (plat/config.flx in particular).

Most of the C++ code for the RTL is platform independent, and each 
file includes a platform configuration file, which should live as

config/*.hpp


However, to make it easy to "ship" the default config could still be built in 
(hard
coded), otherwise the client needs to provide extra files somewhere just
to run the compiler.

--
john skaller
skal...@users.sourceforge.net
http://felix-lang.org




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to