Skip to content

Commit 3be947c

Browse files
committed
Lower optimizations for Amiga
1 parent d7ce5ba commit 3be947c

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/amiga-m68k.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ jobs:
4141
-B build \
4242
-G Ninja \
4343
-DCMAKE_BUILD_TYPE=Release \
44-
-DM68K_COMMON="-s -fbbb=- -ffast-math" \
44+
-DM68K_COMMON="-s -ffast-math" \
4545
-DM68K_CPU=68040 \
4646
-DM68K_FPU=hard
4747
4848
- name: Build DevilutionX
49-
run: cmake --build build
49+
run: cmake --build build --verbose
5050

5151
- name: Upload Package
5252
if: ${{ !env.ACT }}

CMake/platforms/amiga.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ set(SDL1_VIDEO_MODE_BPP 8)
88
set(DEVILUTIONX_SYSTEM_BZIP2 OFF)
99
set(DEVILUTIONX_SYSTEM_ZLIB OFF)
1010

11-
# Lower the optimization level to O2 because there are issues with O3.
12-
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2")
13-
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2")
11+
# Lower the optimization level to O1 because there are issues with O2 and O3.
12+
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O1")
13+
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O1")
1414

1515
# `fseeko` fails to link on Amiga.
1616
add_definitions(-Dfseeko=fseek)

0 commit comments

Comments
 (0)