We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e88bb2 commit c8fd07cCopy full SHA for c8fd07c
1 file changed
tools/CMakeLists.txt
@@ -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
+
11
add_subdirectory(${MARATHON_RECOMP_TOOLS_ROOT}/bc_diff)
12
add_subdirectory(${MARATHON_RECOMP_TOOLS_ROOT}/file_to_c)
13
add_subdirectory(${MARATHON_RECOMP_TOOLS_ROOT}/fshasher)
0 commit comments