Skip to content

Commit 765f0a4

Browse files
Restore constexpr→const patch for FREIGHT random_functions.h (macOS clang)
1 parent e7bda61 commit 765f0a4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2085,6 +2085,12 @@ endif()
20852085
# =============================================================================
20862086
set(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+
20882094
set(FREIGHT_SOURCES
20892095
${FREIGHT_DIR}/lib/partition/onepass_partitioning/vertex_partitioning.cpp
20902096
${FREIGHT_DIR}/lib/partition/onepass_partitioning/floating_block.cpp

0 commit comments

Comments
 (0)