FFI::P...Builder(3pm)
π NAME π
This is the manual page for FFI::Probe::Runner::Builder β the header shortens it to FFI::P...Builder(3pm) β in User Contributed Perl Documentation, bestie. It's the probe runner builder for FFI, periodt. π
π¦ VERSION π¦
version 2.11 β that's the version, no cap. β¨
β¨ SYNOPSIS β¨
use FFI::Probe::Runner::Builder;
my $builder = FFI::Probe::Runner::Builder->new
dir => "/foo/bar",
);
my $exe = $builder->build;
πΈ DESCRIPTION πΈ
This is a builder class for the FFI probe runner, and it's mostly only of interest if you're hacking on FFI::Platypus itself, iykyk. π«Ά
β οΈ Vibe check, bestie: the interface may and will change over time without notice. Use in external dependencies at your own peril, fr fr.
π§Έ CONSTRUCTORS π§Έ
β¨ new
my $builder = FFI::Probe::Runner::Builder->new(%args);
Create a new instance. Slay. π
dirβ the root directory for where to place the probe runner files. It will be created if it doesn't already exist. The default makes sense for whenFFI::Platypusis being built.
π οΈ METHODS π οΈ
π dir
my $dir = $builder->dir(@subdirs);
Returns a subdirectory from the builder root. The directory will be created if it doesn't already exist. π
π§ cc
my @cc = @{ $builder->cc };
The C compiler to use. It's returned as an array reference so that it may be modified. Yes, you can edit it. π
π§ ccflags
my @ccflags = @{ $builder->ccflags };
The C compiler flags to use. Returned as an array reference so that it may be modified.
π optimize
The C optimize flags to use. Returned as an array reference so that it may be modified. β¨
π ld
my @ld = @{ $builder->ld };
The linker to use. Returned as an array reference so that it may be modified.
π¦ ldflags
my @ldflags = @{ $builder->ldflags };
The linker flags to use. Returned as an array reference so that it may be modified.
π libs
my @libs = @{ $builder->libs };
The library flags to use. Returned as an array reference so that it may be modified.
π file
my $file = $builder->file(@subdirs, $filename);
Returns a file in a subdirectory from the builder root. The directory will be created if it doesn't already exist. The file itself will not be created. Important distinction, bestie. π
π exe
my $exe = $builder->exe;
The name of the executable, once it is built.
π source
my $source = $builder->source;
The C source for the probe runner.
π§ extract
$builder->extract;
Extract the source for the probe runner.
π₯ run
$builder->run($type, @command);
Runs the given command. Dies if the command fails. π
π run_list
$builder->run($type, \@command, \@command, ...);
Runs the given commands in order until one succeeds. Dies if they all fail. Fr fr, it's giving try-until-success energy.
β build
my $exe = $builder->build;
Builds the probe runner. Returns the path to the executable. Iconic. π
π AUTHOR π
Author: Graham Ollis <plicease@cpan.org>
Contributors:
- Bakkiaraj Murugesan (bakkiaraj)
- Dylan Cali (calid)
- pipcet
- Zaki Mughal (zmughal)
- Fitz Elliott (felliott)
- Vickenty Fesunov (vyf)
- Gregor Herrmann (gregoa)
- Shlomi Fish (shlomif)
- Damyan Ivanov
- Ilya Pavlov (Ilya33)
- Petr PΓsaΕ (ppisar)
- Mohammad S Anwar (MANWAR)
- HΓ₯kon HΓ¦gland (hakonhagland, HAKONH)
- Meredith (merrilymeredith, MHOWARD)
- Diab Jerius (DJERIUS)
- Eric Brine (IKEGAMI)
- szTheory
- JosΓ© JoaquΓn Atria (JJATRIA)
- Pete Houston (openstrike, HOUSTON)
- Lukas Mai (MAUKE)
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2015-2022 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Rendered from User Contributed Perl Documentation with perl v5.42.3 on 2026-08-20. Byeee, bestie. π
β¨
π¦ where this page comes from
- ubuntu stonking: libffi-platypus-perl 2.11-1build1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms