Projucer doen’t supports to set optimizations per file.
My anticrack/licenser has many cpp/h files, and for security reasons, I do not want these files to be compiled with optimizations.
Before juce, I set this option from the IDE (vs/xcode) but now, every time
when I save the project with projucer I lost these options.
Ok, on visual studio “#pragma optimize( “”, off )” I think it will work. But with clang is not clear how to do that (Apple LLVM version 7.3.0 (clang-703.0.29)).
mmmh, I would not risk, anyway I think that would be a mess in my case, for each product, a script generates the cpps files for the licenser.
pragma optimize does not works on clang? some talk about it works and others that it doent work.
Yes. A static lib is just an archive of .o files. So linking to a static lib or having the .cpp file in your project is really no different. If you strip your symbols at the very end of your build you will be fine.