User forums > Nightly builds
The 01 October 2022 build (12932) is out.
Miguel Gimenez:
Fixed in [r12963], thank you.
Keyuth:
--- Quote from: Miguel Gimenez on October 07, 2022, 05:05:38 pm ---Fixed in [r12963], thank you.
--- End quote ---
Your changes are a good way to avoid this warning.
Sorry. My English is not good. Maybe I didn't make it clear.
The problem should be in the MacrosManager::ReplaceMacros(wxString& buffer, const ProjectBuildTarget* target,bool subrequest) function.
MacrosManager::ReadMacros() was not called to get the contents of the compiler macro variable before the extrapath string was replaced.
I added a function to the sdk/acrosmanager file in my copies like this:
void MacrosManager::ReplaceMacros(wxString& buffer, const wxString compilerId)
{
Compiler* compiler = CompilerFactory::GetCompiler(compilerId);
ReadMacros(m_Macros, compiler);
ReplaceMacros(buffer);
}
If the second parameter directly uses the Compiler * pointer,
it may be ambiguous with MacrosManager:: ReplaceMacros (const wxString&buffer, const ProjectBuildTarget * target) overload.
And Change the code in the CompilerGCC::SetupEnvironment() function:
ReplaceMacros(extraPath);
to:
ReplaceMacros(extraPath, m_CompilerId);
I think this can ensure that the extract string can be correctly Parse and replace.
Miguel Gimenez:
I can not work on this at the moment, please create a ticket with this information, because here it will disappear in a while.
Navigation
[0] Message Index
[*] Previous page
Go to full version