Skip to content

Commit b9cb71f

Browse files
committed
Fixed linux builds, for some reason O2 fucks up the code
1 parent a4bcde2 commit b9cb71f

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
sudo make install
3535
- name: Build
3636
run: |
37-
cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=Debug
37+
cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=Release
3838
cmake --build build-cmake -j
3939
- name: Create Package
4040
run: |

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ jobs:
179179
path: ./build-cmake
180180
- name: Build
181181
run: |
182-
cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=Debug
183-
cmake --build build-cmake --config Debug -j3
182+
cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=Release
183+
cmake --build build-cmake --config Release -j3
184184
(cd build-cmake && cpack -G External)
185185
wget -O gamecontrollerdb.txt https://raw.githubusercontent.com/mdqinc/SDL_GameControllerDB/refs/heads/master/gamecontrollerdb.txt
186186
mv README.md readme.txt

CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ set(CMAKE_CXX_FLAGS_DEBUG "-g -ffast-math -DDEBUG")
137137
set(CMAKE_C_FLAGS_RELEASE "-O3 -ffast-math -DNDEBUG")
138138
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -ffast-math -DNDEBUG")
139139
else()
140-
set(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG")
141-
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG")
142-
set(CMAKE_OBJCXX_FLAGS_RELEASE "-O2 -DNDEBUG")
140+
set(CMAKE_C_FLAGS_RELEASE "-O1 -DNDEBUG")
141+
set(CMAKE_CXX_FLAGS_RELEASE "-O1 -DNDEBUG")
142+
set(CMAKE_OBJCXX_FLAGS_RELEASE "-O1 -DNDEBUG")
143143
endif()
144144

145145
# Set game compilation version
@@ -153,6 +153,7 @@ add_compile_definitions(
153153
ENABLE_RUMBLE=1
154154
F3D_OLD=1
155155
F3D_GBI=1
156+
USE_GBI_TRACE=1
156157
GBI_FLOATS=1
157158
_LANGUAGE_C
158159
_USE_MATH_DEFINES

0 commit comments

Comments
 (0)