cavac has asked for the wisdom of the Perl Monks concerning the following question:
This might be a stupid question, but i have a small issue with JavaScript::Duktape which uses Inline::C.
I want to set the build directory "_Inline" to some other path, so i don't have build directories littered all over the place on my development system. The docs for Inline.pm say to set the PERL_INLINE_DIRECTORY environment variable. I assumed i could just set it in a BEGIN block before use of the Duktape module. But i can't get it to work.
BEGIN { #mkdir '/tmp/pagecamel_helpers_javascript_inline'; $ENV{PERL_INLINE_DIRECTORY} = '/tmp/pagecamel_helpers_javascript_i +nline'; use JavaScript::Duktape; };
I thought this would just set the environment variable, load JavaScript::Duktape (with the variable still intact) which in turn does all the Inline::C magic. Am i doing something incredible stupid here?
Disclaimer: I know that using /tmp is insecure. This will get a proper logic where to place the directory securely. I'm just using /tmp because it simplifies the proof of concept.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Setting the build directory for a module using Inline::C
by Corion (Patriarch) on Apr 04, 2022 at 13:01 UTC | |
by cavac (Prior) on Apr 04, 2022 at 13:38 UTC | |
by syphilis (Archbishop) on Apr 04, 2022 at 23:02 UTC |