Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a way to specify a custom regex lib.
Useful for nqp-jvm while it only has the runtime part of it.
  • Loading branch information
jnthn committed Feb 16, 2013
1 parent 1e0a374 commit c6832d5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/NQP/Actions.pm
Expand Up @@ -226,7 +226,12 @@ class NQP::Actions is HLL::Actions {
unless %*COMPILING<%?OPTIONS><setting> eq 'NULL' {
import_HOW_exports($SETTING);
unless %*COMPILING<%?OPTIONS><no-regex-lib> {
$*W.load_module('NQPP6QRegex', $*GLOBALish);
if %*COMPILING<%?OPTIONS><custom-regex-lib> -> $lib {
$*W.load_module($lib, $*GLOBALish);
}
else {
$*W.load_module('NQPP6QRegex', $*GLOBALish);
}
}
}
}
Expand Down

0 comments on commit c6832d5

Please sign in to comment.