optimisation: don't use ENABLE_FOO option names
This commit is contained in:
parent
7fea529319
commit
dd58dbde82
@ -4,7 +4,7 @@ include (canonical_host)
|
||||
|
||||
|
||||
###############################################################################
|
||||
option(ENABLE_LTO "enable link-time optimisation" OFF)
|
||||
option(LTO "enable link-time optimisation" OFF)
|
||||
|
||||
|
||||
##-----------------------------------------------------------------------------
|
||||
@ -13,7 +13,7 @@ option(ENABLE_LTO "enable link-time optimisation" OFF)
|
||||
## Rather than rely on the INTERPROCEDURAL_OPTIMISATION flag we add some
|
||||
## arguments explicitly because we want a little more control over object
|
||||
## creation.
|
||||
if (ENABLE_LTO)
|
||||
if (LTO)
|
||||
# Add the linker flags first otherwise the linker may not recognise the
|
||||
# object format
|
||||
append_link_flag("-fuse-linker-plugin")
|
||||
@ -32,13 +32,13 @@ endif ()
|
||||
|
||||
|
||||
###############################################################################
|
||||
option(ENABLE_FRAMEPOINTER "retain the framepointer even if optimising" OFF)
|
||||
option(FRAMEPOINTER "retain the framepointer even if optimising" OFF)
|
||||
|
||||
|
||||
##-----------------------------------------------------------------------------
|
||||
if (ENABLE_FRAMEPOINTER)
|
||||
append_compile_flags("-fno-omit-frame-pointer")
|
||||
endif (ENABLE_FRAMEPOINTER)
|
||||
if (FRAMEPOINTER)
|
||||
append_compile_flag("-fno-omit-frame-pointer")
|
||||
endif ()
|
||||
|
||||
|
||||
###############################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user