@@ -14,6 +14,8 @@ namespace
1414 bool compileAsExecutable,
1515 std::string& outScriptObjectFilePath)
1616 {
17+ ssLOG_FUNC_DEBUG ();
18+
1719 std::string scriptDirectory = ghc::filesystem::path (scriptPath).parent_path ().string ();
1820 std::string scriptName = ghc::filesystem::path (scriptPath).stem ().string ();
1921 std::string runcpp2ScriptDir = runcpp2::ProcessPath (scriptDirectory + " /.runcpp2" );
@@ -236,6 +238,8 @@ namespace
236238 bool linkAsExecutable,
237239 const std::string& exeExt)
238240 {
241+ ssLOG_FUNC_DEBUG ();
242+
239243 std::string scriptName = ghc::filesystem::path (scriptPath).stem ().string ();
240244 std::string linkCommand;
241245
@@ -409,19 +413,19 @@ namespace
409413
410414 for (int i = 0 ; i < copiedDependenciesBinariesPaths.size (); ++i)
411415 {
412- size_t foundIndex = copiedDependenciesBinariesPaths[i].find_last_of (" ." );
416+ size_t extensionFoundIndex = copiedDependenciesBinariesPaths[i].find_last_of (" ." );
413417
414- if ( foundIndex == std::string::npos &&
418+ if ( extensionFoundIndex == std::string::npos &&
415419 !runcpp2::GetValueFromPlatformMap (profile.SharedLinkFile .Extension )->empty () &&
416420 !runcpp2::GetValueFromPlatformMap (profile.StaticLinkFile .Extension )->empty ())
417421 {
418422 continue ;
419423 }
420424
421425 // Check if this is a file we can link
422- if (foundIndex != std::string::npos)
426+ if (extensionFoundIndex != std::string::npos)
423427 {
424- std::string extension = copiedDependenciesBinariesPaths[i].substr (foundIndex );
428+ std::string extension = copiedDependenciesBinariesPaths[i].substr (extensionFoundIndex );
425429
426430 if ( extension != *runcpp2::GetValueFromPlatformMap (profile.SharedLinkFile .Extension ) &&
427431 extension != *runcpp2::GetValueFromPlatformMap (profile.StaticLinkFile .Extension ))
@@ -611,4 +615,4 @@ bool runcpp2::CompileAndLinkScript( const std::string& scriptPath,
611615 }
612616
613617 return true ;
614- }
618+ }
0 commit comments