Skip to content
Snippets Groups Projects
Commit 9021a536 authored by Mark Palange (Mani)'s avatar Mark Palange (Mani)
Browse files

DEV-35405 Added creation of <exe_dir>/components directory in debug builds to...

DEV-35405 Added creation of <exe_dir>/components directory in debug builds to quell the savage llmozlib.
parent 4f32c076
No related branches found
No related tags found
No related merge requests found
...@@ -519,6 +519,11 @@ void LLViewerMedia::buildMediaManagerData( LLMediaManagerData* init_data ) ...@@ -519,6 +519,11 @@ void LLViewerMedia::buildMediaManagerData( LLMediaManagerData* init_data )
component_dir += gDirUtilp->getDirDelimiter(); component_dir += gDirUtilp->getDirDelimiter();
#ifdef LL_DEBUG #ifdef LL_DEBUG
component_dir += "mozilla_debug"; component_dir += "mozilla_debug";
// *NOTE:Mani - if this doesn't exist llmozlib goes crashy in the debug build.
// LLMozlib::init wants to write some files to <exe_dir>/components
std::string debug_init_component_dir( gDirUtilp->getExecutableDir() );
debug_init_component_dir += "/components";
LLAPRFile::makeDir(debug_init_component_dir.c_str());
#else // LL_DEBUG #else // LL_DEBUG
component_dir += "mozilla"; component_dir += "mozilla";
#endif // LL_DEBUG #endif // LL_DEBUG
......
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