mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 20:29:49 -05:00
liblzma: Disable XL compiler optimizations
Somehow the XL compiler optimizations create incorrect behavior in liblzma and lead to crashes or truncated output during compression.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user