Skip to content
Snippets Groups Projects
Commit cbfa85cc authored by Zuzana Baranová's avatar Zuzana Baranová
Browse files

CC: Pass the C++ mode flag to Driver in both divc++ and diosc++.

parent 9f9cae8b
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,8 @@ namespace divine::cc
{
if ( _ld_args.empty() )
_ld_args = cc::ld_args( _po, _files );
if ( _cxx )
_ld_args.push_back( "--driver-mode=g++" );
}
void Native::link()
......
......@@ -76,7 +76,6 @@ auto NativeDiosCC::link_dios_native( bool cxx )
if ( cxx )
{
_ld_args.push_back( "--driver-mode=g++" );
_ld_args.push_back( "-stdlib=libc++" );
_ld_args.push_back( "-L" + tmpdir.path );
writeFile( cxxlib, rt::libcxx() );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment