File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5959 - name : Test
6060 run : build/${{matrix.build-targets.filename}}
6161
62+ - name : Strip (macOS)
63+ if : contains(matrix.build-targets.os, 'macos')
64+ run : strip build/${{matrix.build-targets.filename}}
65+
6266 - uses : actions/upload-artifact@v4
6367 with :
6468 name : ${{matrix.build-targets.uploadName}}
Original file line number Diff line number Diff line change @@ -13,7 +13,10 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
1313set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} )
1414
1515set (CMAKE_C_FLAGS_DEBUG "-g -Wall" )
16- set (CMAKE_C_FLAGS_RELEASE "-s -O2" )
16+ set (CMAKE_C_FLAGS_RELEASE "-O2" )
17+ if (NOT CMAKE_C_COMPILER_ID MATCHES "Clang" )
18+ set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -s" )
19+ endif ()
1720
1821if (BUILD_FOR_DOS)
1922 set (CMAKE_C_COMPILER "i586-pc-msdosdjgpp-gcc" )
You can’t perform that action at this time.
0 commit comments