Skip to content

Commit 3b29cb8

Browse files
committed
Merge branch 'linking-depth' into latest
2 parents d22d75c + 9cb9be5 commit 3b29cb8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

scripts/RV_Kcc/Opts.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ sub parseOpts {
447447
for GCC.
448448
{ RV_Kcc::Opts::pushArg('cppArgs', "-d$chars"); }
449449
-ftranslation-depth=<depth> Compile program up to a given depth. [undocumented]
450+
-flinking-depth=<depth> Link program up to a given depth. [undocumented]
450451
-fmessage-length=0 Write all error messages on a single line.
451452
-frunner-script Compile program to perl script with analysis tool options. [undocumented]
452453
-fissue-report=<file> Write issues to the specified file.

scripts/kcc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,11 @@ sub getLinkingCommand {
454454

455455
my @krun = getKRunCommand($output, 'c-cpp-linking-kompiled');
456456

457+
if (arg('-flinking-depth=')) {
458+
push(@krun, '--depth');
459+
push(@krun, arg('-flinking-depth='));
460+
}
461+
457462
my ($rvErrorJson, $string) = (getRVErrorJson(), QUOTE_STRING);
458463
my $json = "\\dv{SortString{}}($rvErrorJson)";
459464

0 commit comments

Comments
 (0)