Skip to content

Commit c8fd07c

Browse files
authored
Always optimize included tool submodules. (#87)
1 parent 3e88bb2 commit c8fd07c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tools/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
option(MARATHON_RECOMP_OPTIMIZE_TOOLS "Apply compiler optimizations to build tools." ON)
2+
if (MARATHON_RECOMP_OPTIMIZE_TOOLS)
3+
if (WIN32)
4+
add_compile_options(/O2)
5+
else()
6+
add_compile_options(-O3)
7+
endif()
8+
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)
9+
endif()
10+
111
add_subdirectory(${MARATHON_RECOMP_TOOLS_ROOT}/bc_diff)
212
add_subdirectory(${MARATHON_RECOMP_TOOLS_ROOT}/file_to_c)
313
add_subdirectory(${MARATHON_RECOMP_TOOLS_ROOT}/fshasher)

0 commit comments

Comments
 (0)