class Compiler

Information related to the compiler that is being used

class Compiler does Systemic {}

Built-in class for providing compiler related information. Usually accessed through the compiler attribute of the $*PERL dynamic variable.

say $*PERL.compiler# OUTPUT: «rakudo (2019.03.1.385.ga.643.b.8.be.1)␤» 

Methods

method id

Returns an unique identifier, a long hexadecimal string

method release

It's empty, but it might contain the release number for specific releases.

method codename

It's empty, but it might contain the codename for specific releases.

method build-date

method build-date()

Up to version 2019.03.1, it returns the date when it was built.

say $*PERL.compiler.build-date#OUTPUT: «2018-05-05T21:49:43Z␤» 

method verbose-config

method verbose-config(:$say)

If $say is True, it prints the different items included in the configuration of the compiler; if it is not, returns a Hash with the same information.

say $*PERL.compiler.verbose-config# OUTPUT: «distro::auth=https://www.opensuse.org/␤distro::desc=2018-05-06T09:19:17.571307+02:00␤» ... And the rest of the configuration 

See Also: Systemic