summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmake/run-cc.pl16
1 files changed, 13 insertions, 3 deletions
diff --git a/make/run-cc.pl b/make/run-cc.pl
index 0b0ac5bad..b12466e2c 100755
--- a/make/run-cc.pl
+++ b/make/run-cc.pl
@@ -86,9 +86,19 @@ foreach my $n (@ARGV)
{
if ($n =~ /\.cpp$/)
{
- $action = "BUILD";
- $name = $n;
- last;
+ if ($action eq "BUILD")
+ {
+ $name .= " " . $n;
+ }
+ else
+ {
+ $action = "BUILD";
+ $name = $n;
+ }
+ }
+ elsif ($action eq "BUILD") # .cpp has priority.
+ {
+ next;
}
elsif ($n eq "-o")
{