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

RT: Add a setter for the _cxx attribute in NativeDiosCC.

parent af1ed5a0
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,7 @@ struct NativeDiosCC : cc::Native
auto link_dios_native( bool cxx );
std::unique_ptr< llvm::Module > link_bitcode() override;
void link() override;
void set_cxx( bool cxx ) { _cxx = cxx; }
bool _cxx;
};
......
......@@ -31,7 +31,7 @@ int main( int argc, char **argv )
{
try {
rt::NativeDiosCC nativeCC( { argv + 1, argv + argc } );
nativeCC._cxx = brick::string::endsWith( argv[0], "divc++" );
nativeCC.set_cxx( brick::string::endsWith( argv[0], "divc++" ) );
auto& po = nativeCC._po;
if ( po.hasHelp || po.hasVersion )
......
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