Use the file lookup using the include paths to resolve filenames.

This commit is contained in:
Vassil Vassilev 2014-08-03 15:26:48 +02:00 committed by sftnight
parent 23b6c2d49f
commit 7b2c95f7bc

View File

@ -53,7 +53,7 @@ int main( int argc, char **argv ) {
if (!Interactive) {
for (size_t I = 0, N = Inputs.size(); I < N; ++I) {
std::string line;
if (llvm::sys::fs::exists(Inputs[I]))
if (!interp.lookupFileOrLibrary(Inputs[I]).empty())
line += ".x ";
line += Inputs[I];