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