[Libreoffice] supported compilers?
Jani Monoses
jani at ubuntu.com
Mon Nov 1 11:56:09 PDT 2010
Is there a list of which compilers are supported and what versions
recommeneded for building LO?
I was thinking of the feasibility of using gcc's __builtin_constant_p in
a macro to differentiate fast and not so fast paths for createFromAscii
cases to keep the code uniform but still get the optimizations, but then
figured that would not work with Visual Studio.
Jani
Ex:
#include <stdio.h>
#define CONSTACTION(str) printf("%s is const\n", str)
#define VARACTION(str) printf("%s is not known to be const\n", str)
#define ACTION(str) if (__builtin_constant_p(str)) {\
CONSTACTION(str); \
} else {\
VARACTION(str);\
}
int main(int argc, char *argv[]) {
char *s = "ss";
ACTION("cc");
ACTION(s);
return 0;
}
More information about the LibreOffice
mailing list