File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2085,6 +2085,12 @@ endif()
20852085# =============================================================================
20862086set (FREIGHT_DIR ${CMAKE_CURRENT_SOURCE_DIR} /external_repositories/FREIGHT/code_for_hypergraphs)
20872087
2088+ # --- Patch random_functions.h: constexpr array too large for some compilers ---
2089+ file (READ ${FREIGHT_DIR} /lib/tools/random_functions.h _SRC )
2090+ string (REPLACE "constexpr ConstRandArray rand_nums = ConstRandArray<TAM>();"
2091+ "const ConstRandArray rand_nums = ConstRandArray<TAM>();" _SRC "${_SRC} " )
2092+ file (WRITE ${FREIGHT_DIR} /lib/tools/random_functions.h "${_SRC} " )
2093+
20882094set (FREIGHT_SOURCES
20892095 ${FREIGHT_DIR} /lib/partition/onepass_partitioning/vertex_partitioning.cpp
20902096 ${FREIGHT_DIR} /lib/partition/onepass_partitioning/floating_block.cpp
You can’t perform that action at this time.
0 commit comments