Skip to content
Snippets Groups Projects
Commit d8126d37 authored by Brad King's avatar Brad King
Browse files

liblzma: Disable XL compiler optimizations

Somehow the XL compiler optimizations create incorrect behavior in
liblzma and lead to crashes or truncated output during compression.
parent af61d6cb
No related branches found
No related tags found
No related merge requests found
......@@ -211,4 +211,10 @@ ENDIF()
ADD_LIBRARY(cmliblzma ${LZMA_SRCS})
IF(CMAKE_C_COMPILER_ID STREQUAL "XL")
# Disable the XL compiler optimizer because it causes crashes
# and other bad behavior in liblzma code.
SET_PROPERTY(TARGET cmliblzma PROPERTY COMPILE_FLAGS "-qnooptimize")
ENDIF()
INSTALL(FILES COPYING DESTINATION ${CMAKE_DOC_DIR}/cmliblzma)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment