File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 1919 CXXFLAGS : " -Werror"
2020 CMAKE_GENERATOR : Ninja
2121 steps :
22+ - name : Free More Disk Space
23+ uses : ax3l/free-disk-space@main
24+ with :
25+ tool-cache : false
26+ android : true
27+ dotnet : true
28+ haskell : true
29+ large-packages : false # apt takes ~1:30min
30+ docker-images : true
31+ swap-storage : false
32+
2233 - uses : actions/checkout@v5
2334
2435 - name : install dependencies
Original file line number Diff line number Diff line change @@ -190,7 +190,13 @@ function(impactx_set_compile_warnings tgt)
190190 elseif ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "AppleClang" )
191191 target_compile_options (${tgt} PRIVATE -Wall -Wextra -Wpedantic -Wshadow -Woverloaded-virtual -Wextra-semi -Wunreachable-code)
192192 elseif ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "GNU" )
193- target_compile_options (${tgt} PRIVATE -Wall -Wextra -Wpedantic -Wshadow -Woverloaded-virtual -Wunreachable-code -Wno-array-bounds)
193+ target_compile_options (${tgt} PRIVATE -Wall -Wextra -Wshadow -Woverloaded-virtual -Wunreachable-code -Wno-array-bounds)
194+ if (NOT ImpactX_COMPUTE STREQUAL CUDA)
195+ # In older NVCC, -Wpedantic causes "warning: style of line directive is a GCC extension"
196+ target_compile_options (${tgt} PRIVATE -Wpedantic)
197+ else ()
198+
199+ endif ()
194200 elseif ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "MSVC" )
195201 # Warning C4503: "decorated name length exceeded, name was truncated"
196202 # Symbols longer than 4096 chars are truncated (and hashed instead)
You can’t perform that action at this time.
0 commit comments