CI updates
This commit is contained in:
@@ -83,6 +83,12 @@ ACC_COMPILE_TIME_ASSERT_HEADER((char) (-1) == 255)
|
||||
#endif // UPX_CONFIG_DISABLE_WSTRICT
|
||||
|
||||
// multithreading (UPX currently does not use multithreading)
|
||||
#if (WITH_THREADS) && defined(_WIN32) && defined(__GLIBCXX__)
|
||||
#if !defined(_GLIBCXX_HAS_GTHREADS)
|
||||
#error "broken MinGW installation: missing _GLIBCXX_HAS_GTHREADS"
|
||||
#undef WITH_THREADS
|
||||
#endif
|
||||
#endif
|
||||
#if (WITH_THREADS)
|
||||
#define upx_thread_local thread_local
|
||||
#define upx_std_atomic(Type) std::atomic<Type>
|
||||
|
||||
@@ -62,6 +62,21 @@ static_assert(sizeof(void *) == 8);
|
||||
#define _USE_MINGW_ANSI_STDIO 1
|
||||
#endif
|
||||
#endif
|
||||
#if defined(_WIN32)
|
||||
// disable silly warnings about using "deprecated" POSIX functions like fopen()
|
||||
#if !defined(_CRT_NONSTDC_NO_DEPRECATE)
|
||||
#define _CRT_NONSTDC_NO_DEPRECATE 1
|
||||
#endif
|
||||
#if !defined(_CRT_NONSTDC_NO_WARNINGS)
|
||||
#define _CRT_NONSTDC_NO_WARNINGS 1
|
||||
#endif
|
||||
#if !defined(_CRT_SECURE_NO_DEPRECATE)
|
||||
#define _CRT_SECURE_NO_DEPRECATE 1
|
||||
#endif
|
||||
#if !defined(_CRT_SECURE_NO_WARNINGS)
|
||||
#define _CRT_SECURE_NO_WARNINGS 1
|
||||
#endif
|
||||
#endif // _WIN32
|
||||
|
||||
// ACC and C system headers
|
||||
#ifndef ACC_CFG_USE_NEW_STYLE_CASTS
|
||||
|
||||
@@ -529,6 +529,16 @@ void show_sysinfo(const char *options_var) {
|
||||
#endif
|
||||
#if defined(__GLIBC_MINOR__)
|
||||
cf_print("__GLIBC_MINOR__", "%lld", __GLIBC_MINOR__ + 0);
|
||||
#endif
|
||||
// misc compilation options
|
||||
#if defined(UPX_CONFIG_DISABLE_WSTRICT)
|
||||
cf_print("UPX_CONFIG_DISABLE_WSTRICT", "%lld", UPX_CONFIG_DISABLE_WSTRICT + 0, 3);
|
||||
#endif
|
||||
#if defined(UPX_CONFIG_DISABLE_WERROR)
|
||||
cf_print("UPX_CONFIG_DISABLE_WERROR", "%lld", UPX_CONFIG_DISABLE_WERROR + 0, 3);
|
||||
#endif
|
||||
#if defined(WITH_THREADS)
|
||||
cf_print("WITH_THREADS", "%lld", WITH_THREADS + 0);
|
||||
#endif
|
||||
UNUSED(cf_count);
|
||||
UNUSED(cf_print);
|
||||
|
||||
Reference in New Issue
Block a user