summaryrefslogtreecommitdiff
path: root/make/run-cc.pl
diff options
context:
space:
mode:
Diffstat (limited to 'make/run-cc.pl')
-rwxr-xr-xmake/run-cc.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/make/run-cc.pl b/make/run-cc.pl
index 21c4fbd60..07f6ace98 100755
--- a/make/run-cc.pl
+++ b/make/run-cc.pl
@@ -125,14 +125,18 @@ if ($cc eq "ar") {
{
if ($n =~ /\.cpp$/)
{
+ my $f = $n;
+ if (defined $ENV{SOURCEPATH}) {
+ $f =~ s#^$ENV{SOURCEPATH}/src/##;
+ }
if ($action eq "BUILD")
{
- $name .= " " . $n;
+ $name .= " " . $f;
}
else
{
$action = "BUILD";
- $name = $n;
+ $name = $f;
}
}
elsif ($action eq "BUILD") # .cpp has priority.