Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » How to set compiler options to a package
How to set compiler options to a package [message #60676] Thu, 11 July 2024 20:51 Go to next message
koldo is currently offline  koldo
Messages: 3432
Registered: August 2008
Senior Veteran
Hi all

I wanted to ask you how to apply some compile parameters to only one package, and let the rest compile with the options in the configuration.

When compiling the NetCDF libraries in Release mode, I noticed that, having "-O3" they don't work properly when I do it with CLANG in Windows. However, with "-O2", the programs work. This problem does not happen with CLANG on Linux or with MSC on Windows.
I show you in the picture what I tried to do, but it doesn't work.

index.php?t=getfile&id=6950&private=0

Thank you very much.
  • Attachment: Untitled.jpg
    (Size: 168.92KB, Downloaded 191 times)


Best regards
Iñaki
Re: How to set compiler options to a package [message #60678 is a reply to message #60676] Mon, 15 July 2024 17:13 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3432
Registered: August 2008
Senior Veteran
Compiling with "Be verbose" a NetCDF source, shows:

... -O0 -fexceptions -O3 ...

It is like first the "Package Organiser/Compiler options" are set, and later the "Setup/Build methods".
Would it be possible that the "Package Organiser/Compiler options" would overlap the "Setup/Build methods"?


Best regards
Iñaki
Re: How to set compiler options to a package [message #60717 is a reply to message #60678] Mon, 29 July 2024 13:38 Go to previous message
koldo is currently offline  koldo
Messages: 3432
Registered: August 2008
Senior Veteran
As the "Setup/Build methods" options override the "Package Organiser/Compiler options", I have tried successfully other option, that is to set this in the sources of the problematic code:

#if defined(__clang__) && (defined(_WIN32) || defined(_WIN64))
#pragma clang optimize off
#endif
I haven't found an intermediate option, but this saves the day.


Best regards
Iñaki
Previous Topic: format code in editor / windows 10 / theide v.16651
Next Topic: Schema utilities
Goto Forum:
  


Current Time: Fri Apr 25 19:06:34 CEST 2025

Total time taken to generate the page: 0.00996 seconds