Hi!
I recently got the rom setup and had a mismatched checksum. This was the checksum for the generated rom
(venv) ➜ fzerox git:(main) md5sum build/fzerox.us.rev0.z64
472d3db4124bec12c8212f399f0274fc build/fzerox.us.rev0.z64
I poked @inspectredc on the discord and found out that on mac, Torch needed an additional compiler flag to treat the floating point values different. This is the diff to tools/Torch/CMakeLists.txt
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3b29309..231bcb0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -112,7 +112,7 @@ endif()
if(NOT CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
- set(CMAKE_CXX_FLAGS "-Wno-narrowing")
+ set(CMAKE_CXX_FLAGS "-Wno-narrowing -ffp-contract=off")
else()
target_compile_options(${PROJECT_NAME} PRIVATE
$<$<CONFIG:Debug>:
After making this change, the checksums matched.
Hi!
I recently got the rom setup and had a mismatched checksum. This was the checksum for the generated rom
I poked @inspectredc on the discord and found out that on mac, Torch needed an additional compiler flag to treat the floating point values different. This is the diff to tools/Torch/CMakeLists.txt
After making this change, the checksums matched.