Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve compiler version in EVALs #3265

Merged
merged 1 commit into from Oct 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Perl6/Compiler.nqp
Expand Up @@ -31,7 +31,7 @@ class Perl6::Compiler is HLL::Compiler {
$!language_version
}
else {
$!language_version := self.config<language-version>
$!language_version := %*COMPILING<%?OPTIONS><language_version> || self.config<language-version>
}
}
method language_modifier() {
Expand Down
1 change: 1 addition & 0 deletions src/core.c/ForeignCode.pm6
Expand Up @@ -64,6 +64,7 @@ proto sub EVAL(
:outer_ctx($eval_ctx),
:global(GLOBAL),
:mast_frames(mast_frames),
:language_version(nqp::getcomp('perl6').language_version),
|(:optimize($_) with nqp::getcomp('perl6').cli-options<optimize>),
|(%(:grammar($LANG<MAIN>), :actions($LANG<MAIN-actions>)) if $LANG);

Expand Down