diff options
author | Brad King <brad.king@kitware.com> | 2014-04-14 20:28:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-04-16 13:15:26 (GMT) |
commit | b22bc075c2fe49d3b7154d5047021277cba2dfb9 (patch) | |
tree | 3ecc1a37eec556c4a7635fad2fc98b5d92108e64 /src/Options.h | |
parent | 68009c611d9fbf5ad8391e12e4d40c5716aee43e (diff) | |
download | CastXML-b22bc075c2fe49d3b7154d5047021277cba2dfb9.zip CastXML-b22bc075c2fe49d3b7154d5047021277cba2dfb9.tar.gz CastXML-b22bc075c2fe49d3b7154d5047021277cba2dfb9.tar.bz2 |
Detect: Recognize framework include directories on OS X
Some OS X compilers report their framework include directories with an
explicit suffix in "-v" output. Others report without an explicit
suffix but the paths imply they are for frameworks by ending in
"/Frameworks". Recognize either suffix and remove the explicit suffix.
Add framework directories with "-iframework" instead of "-isystem".
Diffstat (limited to 'src/Options.h')
-rw-r--r-- | src/Options.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Options.h b/src/Options.h index 4abd778..376af4d 100644 --- a/src/Options.h +++ b/src/Options.h @@ -26,8 +26,14 @@ struct Options bool PPOnly; bool GccXml; bool HaveCC; + struct Include { + Include(std::string const& d, bool f = false): + Directory(d), Framework(f) {} + std::string Directory; + bool Framework; + }; std::string OutputFile; - std::vector<std::string> Includes; + std::vector<Include> Includes; std::string Predefines; std::string Triple; std::vector<std::string> StartNames; |