Skip to content

Commit 4cb47ec

Browse files
committed
Disable LTO on SVE-enabled translation units
1 parent 0eae0b0 commit 4cb47ec

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

cpp/src/arrow/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,14 +346,16 @@ endmacro()
346346
macro(append_runtime_sve128_src SRCS SRC)
347347
if(ARROW_HAVE_RUNTIME_SVE128)
348348
list(APPEND ${SRCS} ${SRC})
349-
set_source_files_properties(${SRC} PROPERTIES COMPILE_OPTIONS "${ARROW_SVE128_FLAGS}")
349+
set_source_files_properties(${SRC} PROPERTIES COMPILE_OPTIONS
350+
"${ARROW_SVE128_FLAGS} -fno-lto")
350351
endif()
351352
endmacro()
352353

353354
macro(append_runtime_sve256_src SRCS SRC)
354355
if(ARROW_HAVE_RUNTIME_SVE256)
355356
list(APPEND ${SRCS} ${SRC})
356-
set_source_files_properties(${SRC} PROPERTIES COMPILE_OPTIONS "${ARROW_SVE256_FLAGS}")
357+
set_source_files_properties(${SRC} PROPERTIES COMPILE_OPTIONS
358+
"${ARROW_SVE256_FLAGS} -fno-lto")
357359
endif()
358360
endmacro()
359361

0 commit comments

Comments
 (0)