Menu

#1133 Compiler is checked for skipped targets

Undefined
fixed
Compiler (40)
Undefined
2021-12-01
2021-08-24
No

When virtual target is compiled and it includes some targets that are not applicable for current platform, their compiler is still checked and an error is written into build log. For example a test project was configured to use msvc10 compiler on Windows only and gcc on Posix only.

Expected output in the build log:

Test Project - Win64" does not support the current platform. Skipping...

Real output:

Skipping...
Project/Target: "Test Project - Win64":
The compiler's setup is invalid, so Code::Blocks cannot find/run the compiler.
Probably the toolchain path within the compiler options is not setup correctly?!
Do you have a compiler installed?
Goto "Settings->Compiler...->Global compiler settings->unknown->Toolchain executables" and fix the compiler's setup.

Discussion

  • Teodor Petrov

    Teodor Petrov - 2021-08-28

    Can you provide sample project/workspace which could be used to reproduce the problem?

     
    • Dimitry Sibiryakov

      Here it is

       
  • Teodor Petrov

    Teodor Petrov - 2021-08-28
    • labels: compilerplugin --> Compiler
     
  • Miguel Gimenez

    Miguel Gimenez - 2021-09-16

    Possible patch:
    - Do not check compiler validity if the target is skipped
    - Remove unnecessary calls to F(), _T() and wx_str()
    - Split long lines

     
  • Miguel Gimenez

    Miguel Gimenez - 2021-12-01
    • status: open --> fixed
    • assigned_to: Miguel Gimenez
     
  • Miguel Gimenez

    Miguel Gimenez - 2021-12-01

    Fixed in revision 12542

     

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.