Hello, 

I'm trying to generate some header files based on the current configuration 
#define PLATFORM_SOMETHING
#define THREADS  4
...

I'm using the LUA API and it works great for the building but I cannot use 
it to generate the configuration files.
Why is this limitation? 
I don't want to create some external shell scripts as they are platform 
dependent but wish to use the "built-in lua". Like configure_file in cmake
Of course the dependencies should be added manually as for the other shell 
generated scripts.

tup error [string "builtin"]:32: io.open in the parser can only open files 
read-only
stack traceback:
        [C]: in function 'chdir'
        [string "builtin"]:32: in function 'open'
        [string "Tupfile.lua"]:2: in main chunk

Thanks: Gzp

-- 
-- 
tup-users mailing list
email: [email protected]
unsubscribe: [email protected]
options: http://groups.google.com/group/tup-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"tup-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to