Suppress RandomX strict-overflow warnings in GCC compile and LTO link phases

This commit is contained in:
Matt Hess
2026-02-19 13:47:53 +00:00
parent 289bcc2d03
commit de76c93b67
4 changed files with 4 additions and 30 deletions
-10
View File
@@ -14,17 +14,7 @@ on:
workflow_dispatch:
jobs:
clang-tidy:
uses: ./.github/workflows/clang-tidy.yml
cppcheck:
uses: ./.github/workflows/cppcheck.yml
c-cpp-ci:
uses: ./.github/workflows/c-cpp.yml
sync-test-macos:
needs: [clang-tidy, cppcheck, c-cpp-ci]
timeout-minutes: 120
runs-on: ${{ matrix.config.os }}
-10
View File
@@ -14,17 +14,7 @@ on:
workflow_dispatch:
jobs:
clang-tidy:
uses: ./.github/workflows/clang-tidy.yml
cppcheck:
uses: ./.github/workflows/cppcheck.yml
c-cpp-ci:
uses: ./.github/workflows/c-cpp.yml
sync-test-ubuntu-tsan:
needs: [clang-tidy, cppcheck, c-cpp-ci]
timeout-minutes: 60
runs-on: ubuntu-22.04
-10
View File
@@ -14,17 +14,7 @@ on:
workflow_dispatch:
jobs:
clang-tidy:
uses: ./.github/workflows/clang-tidy.yml
cppcheck:
uses: ./.github/workflows/cppcheck.yml
c-cpp-ci:
uses: ./.github/workflows/c-cpp.yml
sync-test-windows-debug-asan:
needs: [clang-tidy, cppcheck, c-cpp-ci]
timeout-minutes: 60
runs-on: windows-2022
+4
View File
@@ -55,6 +55,10 @@ if (WITH_RANDOMX)
add_definitions(-DWITH_RANDOMX)
add_subdirectory(external/src/RandomX)
set(LIBS ${LIBS} randomx)
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_options(randomx PRIVATE -Wno-strict-overflow)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wno-strict-overflow")
endif()
endif()
if (WITH_UPNP)