Menu

#1171 Cygwin compiler does not set the masterpath if Cygwin not detected

Undefined
applied
None
Patch
2021-12-31
2021-12-31
No

SVN 12612 issue .
If the default.conf does not exist and the Cygwin compiler is not installed/detected then the compilerCYGWIN.cpp does not set the m_MasterPath and as such the deault.conf does not have a masterpath entry for the Cygwin compiler, which causes the auto detect code to fail on startup and therefore show the auto detect dialog with the Cygwin compiler showing invalid.

The fix is to change the compilerCYGWIN.cpp CompilerCYGWIN::AutoDetectInstallationDir() function to the following:
AutoDetectResult CompilerCYGWIN::AutoDetectInstallationDir()
{
if (platform::windows)
{
if (cbIsDetectedCygwinCompiler())
{
m_MasterPath = cbGetCygwinCompilerPathRoot();
return adrDetected;
}
else
{
m_MasterPath = "C:\cygwin64";
return adrGuessed;
}
}
else
{
m_MasterPath = cbGetCygwinCompilerPathRoot();
return adrGuessed;
}
}

1 Attachments

Discussion

  • Miguel Gimenez

    Miguel Gimenez - 2021-12-31
    • status: open --> applied
    • assigned_to: Miguel Gimenez
     
  • Miguel Gimenez

    Miguel Gimenez - 2021-12-31

    Applied in [r12618]

     

    Related

    Commit: [r12618]


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.