From b432ac05b4ebb43a57ee3acca4333b7f9d6a2ade Mon Sep 17 00:00:00 2001 From: tangxifan Date: Wed, 24 Aug 2022 21:51:29 -0700 Subject: [PATCH] [script] fixed typo on IPO options --- CMakeLists.txt | 6 ++---- openfpga/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d7d578db8..43a07188f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,7 +37,6 @@ endif() set(OPENFPGA_IPO_BUILD "auto" CACHE STRING "Should OpenFPGA be compiled with interprocedural compiler optimizations?") set_property(CACHE OPENFPGA_IPO_BUILD PROPERTY STRINGS auto on off) - #Allow the user to configure how much assertion checking should occur set(VTR_ASSERT_LEVEL "2" CACHE STRING "VTR assertion checking level. 0: no assertions, 1: fast assertions, 2: regular assertions, 3: additional assertions with noticable run-time overhead, 4: all assertions (including those with significant run-time cost)") set_property(CACHE VTR_ASSERT_LEVEL PROPERTY STRINGS 0 1 2 3 4) @@ -77,14 +76,14 @@ set(CMAKE_CXX_EXTENSIONS OFF) #No compiler specific extensions # to avoid cmake warnings include(CheckIPOSupported) check_ipo_supported(RESULT IPO_SUPPORTED) -if (VTR_IPO_BUILD STREQUAL "on") +if (OPENFPGA_IPO_BUILD STREQUAL "on") if (IPO_SUPPORTED) message(STATUS "Building with IPO: on") set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON) else() message(ERROR "Building with IPO unsupported with this compiler!") endif() -elseif(VTR_IPO_BUILD STREQUAL "auto") +elseif(OPENFPGA_IPO_BUILD STREQUAL "auto") if (IPO_SUPPORTED AND NOT CMAKE_BUILD_TYPE STREQUAL "debug") message(STATUS "Building with IPO: on (auto)") set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON) @@ -185,7 +184,6 @@ foreach(flag ${IPO_LINK_WARN_SUPRESS_FLAGS_TO_CHECK}) endif() endforeach() - # # Sanitizer flags # diff --git a/openfpga/CMakeLists.txt b/openfpga/CMakeLists.txt index dc83c1fc6..9fd427144 100644 --- a/openfpga/CMakeLists.txt +++ b/openfpga/CMakeLists.txt @@ -35,7 +35,7 @@ target_link_libraries(libopenfpga add_executable(openfpga ${EXEC_SOURCE}) target_link_libraries(openfpga libopenfpga) -#Supress IPO link warnings if IPO is enabled +#Suppress IPO link warnings if IPO is enabled get_target_property(OPENFPGA_USES_IPO openfpga INTERPROCEDURAL_OPTIMIZATION) if (OPENFPGA_USES_IPO) set_property(TARGET openfpga APPEND PROPERTY LINK_FLAGS ${IPO_LINK_WARN_SUPRESS_FLAGS})