Skip to content

Commit

Permalink
Introducing MRUSTC_LIB env variable (ref thepowersgang#214)
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.
  • Loading branch information
catap committed Aug 10, 2022
1 parent 586c301 commit d5185cc
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 d5185cc

Please sign in to comment.