diff --git a/clang/tools/ccc/ccclib/Driver.py b/clang/tools/ccc/ccclib/Driver.py index 983a52bd185d..23bc10cb4ede 100644 --- a/clang/tools/ccc/ccclib/Driver.py +++ b/clang/tools/ccc/ccclib/Driver.py @@ -675,7 +675,7 @@ class Driver(object): output = finalOutput # Contruct a named destination? elif atTopLevel or hasSaveTemps: - output = args.makeSeparateArg(namedOutput, + output = args.makeSeparateArg(os.path.basename(namedOutput), self.parser.oOption) else: # Output to temp file...