We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 452e508 commit ff78b85Copy full SHA for ff78b85
2 files changed
.github/workflows/build.yml
@@ -30,6 +30,8 @@ jobs:
30
cmake -B build -DCMAKE_TOOLCHAIN_FILE=toolchain-mingw.cmake -DCMAKE_BUILD_TYPE=Release
31
- name: Build
32
run: cmake --build build
33
+ - name: Strip executable
34
+ run: x86_64-w64-mingw32-strip build/ghostinjector-*.exe
35
- name: Rename executable
36
run: mv build/ghostinjector-*.exe build/ghostinjector.exe
37
toolchain-mingw.cmake
@@ -2,4 +2,7 @@
2
set(CMAKE_SYSTEM_NAME Windows)
3
set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
4
set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
5
-set(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)
+set(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)
6
+
7
+# Optimize for size in release builds
8
+string(APPEND CMAKE_C_FLAGS_RELEASE " -Os")
0 commit comments