rewording in configure.c

This commit is contained in:
sevoves 2025-04-04 15:43:44 +04:00
parent 3460b9f78a
commit e298d10d99

View file

@ -125,22 +125,22 @@ void determineOS() {
}
#define optimize "" // " -O1"
// FIXME ignoring flood warnings that possibly are problems
#define ignore_gcc_flood_warning " -Wno-stringop-overflow"
#define ignore_clang_flood_warning " -Wno-deprecated-non-prototype"
// FIXME ignoring warning floods that possibly are problems
#define ignore_gcc_warning_flood " -Wno-stringop-overflow"
#define ignore_clang_warning_flood " -Wno-deprecated-non-prototype"
void determineCCompiler() {
snprintf(libspec, sizeof(libspec), " -l%s", oname);
#if defined(__MINGW32__)
compiler = "mingw";
if (sizeof (void*) == 4) {
cc = "i686-w64-mingw32-gcc -g" ignore_gcc_flood_warning optimize;
cc = "i686-w64-mingw32-gcc -g" ignore_gcc_warning_flood optimize;
} else {
cc = "x86_64-w64-mingw32-gcc -g" ignore_gcc_flood_warning optimize;
cc = "x86_64-w64-mingw32-gcc -g" ignore_gcc_warning_flood optimize;
}
#elif defined(__clang__)
compiler = "clang";
cc = "clang -fPIC -g" ignore_clang_flood_warning optimize;
cc = "clang -fPIC -g" ignore_clang_warning_flood optimize;
#elif defined(__TINYC__)
compiler = "tcc";
cc = "tcc -g";
@ -149,9 +149,9 @@ void determineCCompiler() {
compiler = "gcc";
if (strncasecmp(os, "cygwin", 6) == 0) {
// Avoid cygwin specific warning that -fPIC is ignored.
cc = "gcc -g" ignore_gcc_flood_warning optimize;
cc = "gcc -g" ignore_gcc_warning_flood optimize;
} else {
cc = "gcc -fPIC -g" ignore_gcc_flood_warning optimize;
cc = "gcc -fPIC -g" ignore_gcc_warning_flood optimize;
}
#elif defined(_MSC_VER)
compiler = "msc";