CI updates
This commit is contained in:
@@ -110,6 +110,10 @@ jobs:
|
|||||||
with: { submodules: true }
|
with: { submodules: true }
|
||||||
- name: Check out test suite
|
- name: Check out test suite
|
||||||
run: git clone --depth=1 https://github.com/upx/upx-testsuite ../deps/upx-testsuite
|
run: git clone --depth=1 https://github.com/upx/upx-testsuite ../deps/upx-testsuite
|
||||||
|
- run: clang -E -x c -dM /dev/null # list predefined macros for C
|
||||||
|
- run: clang++ -E -x c++ -dM /dev/null # list predefined macros for C++
|
||||||
|
- run: gcc -E -x c -dM /dev/null # list predefined macros for C
|
||||||
|
- run: g++ -E -x c++ -dM /dev/null # list predefined macros for C++
|
||||||
- run: make build/extra/gcc/all
|
- run: make build/extra/gcc/all
|
||||||
- run: make build/extra/clang/all
|
- run: make build/extra/clang/all
|
||||||
- run: make build/extra/gcc-m32/all
|
- run: make build/extra/gcc-m32/all
|
||||||
@@ -231,6 +235,12 @@ jobs:
|
|||||||
- name: Check out test suite
|
- name: Check out test suite
|
||||||
if: ${{ matrix.testsuite }}
|
if: ${{ matrix.testsuite }}
|
||||||
run: git clone --depth=1 https://github.com/upx/upx-testsuite ../deps/upx-testsuite
|
run: git clone --depth=1 https://github.com/upx/upx-testsuite ../deps/upx-testsuite
|
||||||
|
- run: clang -E -x c -dM /dev/null # list predefined macros for C
|
||||||
|
- run: clang++ -E -x c++ -dM /dev/null # list predefined macros for C++
|
||||||
|
- run: ${{ matrix.gcc }} -E -x c -dM /dev/null # list predefined macros for C
|
||||||
|
if: ${{ matrix.gcc }}
|
||||||
|
- run: ${{ matrix.gxx }} -E -x c++ -dM /dev/null # list predefined macros for C++
|
||||||
|
if: ${{ matrix.gcc }}
|
||||||
- run: make build/extra/clang/all
|
- run: make build/extra/clang/all
|
||||||
- name: Build extra/gcc/all
|
- name: Build extra/gcc/all
|
||||||
if: ${{ matrix.gcc }}
|
if: ${{ matrix.gcc }}
|
||||||
@@ -536,6 +546,8 @@ jobs:
|
|||||||
if test "X$ZIG_PIC" = "X-fPIE"; then true;
|
if test "X$ZIG_PIC" = "X-fPIE"; then true;
|
||||||
echo "ZIG_FLAGS=$ZIG_FLAGS --start-no-unused-arguments -pie --end-no-unused-arguments" >> $GITHUB_ENV
|
echo "ZIG_FLAGS=$ZIG_FLAGS --start-no-unused-arguments -pie --end-no-unused-arguments" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
|
- run: zig-cc -E -x c -dM /dev/null # list predefined macros for C
|
||||||
|
- run: zig-cxx -E -x c++ -dM /dev/null # list predefined macros for C++
|
||||||
- name: ${{ format('Build Release with zig-cc -target {0} {1}', env.ZIG_TARGET, env.ZIG_PIC) }}
|
- name: ${{ format('Build Release with zig-cc -target {0} {1}', env.ZIG_TARGET, env.ZIG_PIC) }}
|
||||||
run: |
|
run: |
|
||||||
make UPX_XTARGET=zig/${ZIG_TARGET}${ZIG_PIC} xtarget/release \
|
make UPX_XTARGET=zig/${ZIG_TARGET}${ZIG_PIC} xtarget/release \
|
||||||
|
|||||||
@@ -576,6 +576,15 @@ void show_sysinfo(const char *options_var) {
|
|||||||
#if defined(__mips_soft_float)
|
#if defined(__mips_soft_float)
|
||||||
cf_print("__mips_soft_float", "%lld", __mips_soft_float + 0);
|
cf_print("__mips_soft_float", "%lld", __mips_soft_float + 0);
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(__wasm__)
|
||||||
|
cf_print("__wasm__", "%lld", __wasm__ + 0);
|
||||||
|
#endif
|
||||||
|
#if defined(__wasm32__)
|
||||||
|
cf_print("__wasm32__", "%lld", __wasm32__ + 0);
|
||||||
|
#endif
|
||||||
|
#if defined(__wasm64__)
|
||||||
|
cf_print("__wasm64__", "%lld", __wasm64__ + 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
// OS and libc
|
// OS and libc
|
||||||
#if defined(WINVER)
|
#if defined(WINVER)
|
||||||
@@ -604,6 +613,9 @@ void show_sysinfo(const char *options_var) {
|
|||||||
#if defined(__GLIBC_MINOR__)
|
#if defined(__GLIBC_MINOR__)
|
||||||
cf_print("__GLIBC_MINOR__", "%lld", __GLIBC_MINOR__ + 0);
|
cf_print("__GLIBC_MINOR__", "%lld", __GLIBC_MINOR__ + 0);
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(__wasi__)
|
||||||
|
cf_print("__wasi__", "%lld", __wasi__ + 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
// misc compilation options
|
// misc compilation options
|
||||||
#if defined(UPX_CONFIG_DISABLE_WSTRICT)
|
#if defined(UPX_CONFIG_DISABLE_WSTRICT)
|
||||||
|
|||||||
+8
-3
@@ -970,10 +970,15 @@ TEST_CASE("get_ratio") {
|
|||||||
// compat
|
// compat
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
#if defined(__wasi__) // TODO later - wait for wasm/wasi exception handling proposal
|
#if defined(__wasi__) && 1 // TODO later - wait for wasm/wasi exception handling proposal
|
||||||
extern "C" {
|
extern "C" {
|
||||||
void __cxa_allocate_exception() throw() { std::terminate(); }
|
void *__cxa_allocate_exception(std::size_t thrown_size) throw() { return ::malloc(thrown_size); }
|
||||||
void __cxa_throw() { std::terminate(); }
|
void __cxa_throw(void *thrown_exception, /*std::type_info*/ void *tinfo, void (*dest)(void *)) {
|
||||||
|
UNUSED(thrown_exception);
|
||||||
|
UNUSED(tinfo);
|
||||||
|
UNUSED(dest);
|
||||||
|
std::terminate();
|
||||||
|
}
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user