[cfe-dev] XCode + CLANG_ANALYZER_EXEC?

Jean-Daniel Dupas devlists at shadowlab.org
Mon Oct 14 14:43:39 PDT 2013


Hi,

CLANG_ANALYZER_EXEC is not an environment variable. It is a Xcode build setting.

Define this build setting in your project build settings to point to the custom clang binary and it should works.


Le 14 oct. 2013 à 20:40, Mathieu Baudet <mathieu.baudet at gmail.com> a écrit :

> Hi,
> 
> Does anyone know a way to override the path to clang(analyzer) from
> the configuration files of a XCode 5 project?
> 
> So far the only (unsatisfactory) solution I found is to modify the
> global plugin file "Clang LLVM 1.0.xcspec" manually or using the tool
> set-xcode-analyzer, then restart Xcode.
> 
> Surprisingly, the default value of CLANG_ANALYZER_EXEC in "Clang LLVM
> 1.0.xcspec" it not overridden by exporting an environment variable
> before launching Xcode (from the shell). Yet in the same condition
> setting the environment variable CLANG_ANALYZER_OTHER_FLAGS does work.
> Deleting the default value for CLANG_ANALYZER_EXEC in the .xcspec file
> then setting a global variable at launchtime works but then XCode will
> crash on subsequent sessions when the global variable is not set.
> 
> Ideally I would like to set these variables in the .xcconfig file. I
> tried but this does not appear to do anything. Is this supposed to
> work? Should I create a custom compiler plugin?
> 
> Thanks!
> 
> -- Mathieu
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

-- Jean-Daniel








More information about the cfe-dev mailing list