diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-08-20 22:16:09 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-08-20 22:16:09 +0800 |
commit | 739443094434e2622abd1fea5d2b5a03bc1ba0ef (patch) | |
tree | dbc593a8fd14e95c2c73dd441e513aee21d03824 /src/main.cpp | |
parent | 10e0d9a2609cc2b4d30c38e7f1f20e11de432fd6 (diff) | |
parent | a99e49b7505d2912d8699d4c791b8b30c194024b (diff) | |
download | mrust-739443094434e2622abd1fea5d2b5a03bc1ba0ef.tar.gz |
Merge branch 'master' of https://github.com/thepowersgang/mrustc
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 7b1d94be..b883a828 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -224,6 +224,11 @@ int main(int argc, char *argv[]) // Load external crates. CompilePhaseV("LoadCrates", [&]() { + // Hacky! + for(const auto& ld : params.lib_search_dirs) + { + AST::g_crate_load_dirs.push_back(ld); + } crate.load_externs(); }); @@ -570,6 +575,12 @@ int main(int argc, char *argv[]) // ::std::cerr << "Internal Compiler Error: " << e << ::std::endl; // return 2; //} + + // TODO: Make this conditional +#if 0 + ::std::cout << "Press enter to exit..." << ::std::endl; + ::std::cin.get(); +#endif return 0; } |