[cfe-commits] r39036 - /cfe/cfe/trunk/Driver/clang.cpp

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:27:01 PDT 2007


Author: sabre
Date: Wed Jul 11 11:27:01 2007
New Revision: 39036

URL: http://llvm.org/viewvc/llvm-project?rev=39036&view=rev
Log:
Add -F option

Modified:
    cfe/cfe/trunk/Driver/clang.cpp

Modified: cfe/cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Driver/clang.cpp?rev=39036&r1=39035&r2=39036&view=diff

==============================================================================
--- cfe/cfe/trunk/Driver/clang.cpp (original)
+++ cfe/cfe/trunk/Driver/clang.cpp Wed Jul 11 11:27:01 2007
@@ -562,6 +562,9 @@
 
 // Various command line options.  These four add directories to each chain.
 static cl::list<std::string>
+F_dirs("F", cl::value_desc("directory"), cl::Prefix,
+       cl::desc("Add directory to framework include search path"));
+static cl::list<std::string>
 I_dirs("I", cl::value_desc("directory"), cl::Prefix,
        cl::desc("Add directory to include search path"));
 static cl::list<std::string>
@@ -639,6 +642,10 @@
 /// HeaderSearch object.
 static void InitializeIncludePaths(HeaderSearch &Headers, FileManager &FM,
                                    Diagnostic &Diags) {
+  // Handle -F... options.
+  for (unsigned i = 0, e = F_dirs.size(); i != e; ++i)
+    AddPath(F_dirs[i], Angled, false, true, true, FM);
+  
   // Handle -I... options.
   for (unsigned i = 0, e = I_dirs.size(); i != e; ++i) {
     if (I_dirs[i] == "-") {





More information about the cfe-commits mailing list