Skip to content

Commit

Permalink
Introducing MRUSTC_LIB env variable
Browse files Browse the repository at this point in the history
The idea is simple: we need some way to put `-latomic` to `gcc` call.
Let add a dedicated variable which allows to add any library which may
be needed.

It may fixes: #287
  • Loading branch information
catap committed Aug 10, 2022
1 parent 586c301 commit 8c365ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ++ )
{
Expand Down

0 comments on commit 8c365ee

Please sign in to comment.