diff --git a/src/main.cpp b/src/main.cpp index bdaa79f70..0c0a24412 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -893,6 +893,11 @@ ProgramParams::ProgramParams(int argc, char *argv[]) this->lib_search_dirs.push_back(a); } + if( const auto* a = getenv("MRUSTC_LIBD") ) + { + this->libraries.push_back(a); + } + // Hacky command-line parsing for( int i = 1; i < argc; i ++ ) {