Suppress RandomX strict-overflow warnings in GCC compile and LTO link phases
This commit is contained in:
@@ -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 }}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user