Skip to content

Commit 4573439

Browse files
committed
[minicern] Remove forced -O0
Minicern was switched to -O0 in the hope to reduce crashes. This workaround seems unnecessary now.
1 parent 231fca3 commit 4573439

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

misc/minicern/CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ ROOT_LINKER_LIBRARY(minicern *.c *.f TYPE STATIC)
1212
set_property(TARGET minicern PROPERTY POSITION_INDEPENDENT_CODE ON)
1313
target_link_libraries(minicern ${CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES})
1414

15-
# Disable optimization since it some cases was causing crashes.
1615
# Disable warnings, since what has worked for 40 years...
1716
# (see https://sft.its.cern.ch/jira/browse/ROOT-9179 for the warnings)
18-
set_target_properties(minicern PROPERTIES COMPILE_FLAGS "-O0 -w")
19-
# set_target_properties(minicern PROPERTIES COMPILE_FLAGS "-fsanitize=undefined -fsanitize=address")
20-
# target_link_options(minicern BEFORE PUBLIC -fsanitize=undefined PUBLIC -fsanitize=address)
17+
target_compile_options(minicern PRIVATE "-w")

0 commit comments

Comments
 (0)