Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Setting the build directory for a module using Inline::C

by cavac (Parson)
on Apr 04, 2022 at 13:38 UTC ( [id://11142666]=note: print w/replies, xml ) Need Help??


in reply to Re: Setting the build directory for a module using Inline::C
in thread Setting the build directory for a module using Inline::C

Ah, yes. I thought i tried that. But that might have been after commenting out the mkdir statement. The solution seems to be:

BEGIN { mkdir '/tmp/pagecamel_helpers_javascript_inline'; $ENV{PERL_INLINE_DIRECTORY} = '/tmp/pagecamel_helpers_javascript_i +nline'; }; use JavaScript::Duktape;

Thanks Corion!

As for JavaScript::DukTape: Yeah ideally this should compile at install-time. I'm currently trying out Inline::Module, to see it that would work with Duktape. If it does, i'll contact the original author and talk to them on how to proceed (send patches, take over module maintenance, whatever).

perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'

Replies are listed 'Best First'.
Re^3: Setting the build directory for a module using Inline::C
by syphilis (Archbishop) on Apr 04, 2022 at 23:02 UTC
    I want to set the build directory "_Inline" to some other path

    I usually do this by setting the Inline config option "DIRECTORY" to the desired location.
    This requires that the specified directory already exists.
    It would also involve amending the code inside JavaScript:::DukTape ... I'm not sure if that's what you want.
    use warnings; use Inline C => Config => # C:/inline_build must already exist DIRECTORY => 'C:/inline_build', ; use Inline C =><<'EOC'; void foo() { printf("Hello World\n"); } EOC foo();
    Cheers,
    Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11142666]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-25 13:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found