From 0bd2a032bb5b1c31edef17426c3a0a0913473aa5 Mon Sep 17 00:00:00 2001 From: Antoine Mercadal Date: Mon, 21 Apr 2014 14:03:45 -0700 Subject: [PATCH] FIXED: Give basedir option to capp_lint from XCC or it won't work once completely built --- Tools/XcodeCapp/XcodeCapp/XcodeCapp.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/XcodeCapp/XcodeCapp/XcodeCapp.m b/Tools/XcodeCapp/XcodeCapp/XcodeCapp.m index 3c9835b23..3263b1f47 100644 --- a/Tools/XcodeCapp/XcodeCapp/XcodeCapp.m +++ b/Tools/XcodeCapp/XcodeCapp/XcodeCapp.m @@ -1741,7 +1741,8 @@ void fsevents_callback(ConstFSEventStreamRef streamRef, self.isProcessing = YES; [[NSNotificationCenter defaultCenter] postNotificationName:XCCBatchDidStartNotification object:self]; - NSArray *arguments = [NSArray arrayWithObject:aPath]; + NSString *baseDirectory = [NSString stringWithFormat:@"--basedir='%@'", self.projectPath]; + NSArray *arguments = [NSArray arrayWithObjects:baseDirectory, aPath, nil]; NSDictionary *taskResult = [self runTaskWithLaunchPath:self.executablePaths[@"capp_lint"] arguments:arguments