File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,13 @@ static llvm::cl::opt<bool> EnableExperimentalConcurrency(
124
124
" enable-experimental-concurrency" ,
125
125
llvm::cl::desc (" Whether to enable experimental concurrency or not" ));
126
126
127
+ static llvm::cl::opt<std::string>
128
+ SDK (" sdk" , llvm::cl::desc(" Path to the SDK to build against" ));
129
+
130
+ static llvm::cl::list<std::string>
131
+ ImportPaths (" I" ,
132
+ llvm::cl::desc (" Add a directory to the import search path" ));
133
+
127
134
enum class DumpType {
128
135
REWRITTEN,
129
136
JSON,
@@ -274,6 +281,10 @@ int main(int argc, char *argv[]) {
274
281
Invocation.setMainExecutablePath (
275
282
llvm::sys::fs::getMainExecutable (argv[0 ],
276
283
reinterpret_cast <void *>(&anchorForGetMainExecutable)));
284
+
285
+ Invocation.setSDKPath (options::SDK);
286
+ Invocation.setImportSearchPaths (options::ImportPaths);
287
+
277
288
Invocation.getFrontendOptions ().InputsAndOutputs .addInputFile (
278
289
options::SourceFilename);
279
290
Invocation.getLangOptions ().AttachCommentsToDecls = true ;
You can’t perform that action at this time.
0 commit comments