Skip to content

Commit cb7d5b6

Browse files
authored
Merge pull request #711 from os-fpga/stars_NO_LTO
stars: no LTO and O1 to address centos7 production build
2 parents c074f45 + bea51d1 commit cb7d5b6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

stars/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ message(STATUS "Building with IPO: off")
1111
set(OPENFPGA_IPO_BUILD "off" CACHE STRING "Should be compiled with LTO?")
1212
set_property(CACHE OPENFPGA_IPO_BUILD PROPERTY STRINGS auto off off)
1313

14-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -mavx2 -march=haswell")
15-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -mavx2 -march=haswell")
14+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -O1 -mavx2 -march=haswell")
15+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -O1 -mavx2 -march=haswell")
1616
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fPIC -O1 -mavx2 -march=haswell")
1717

1818
file(GLOB_RECURSE EXEC_SOURCE src/main.cpp)
@@ -49,5 +49,7 @@ target_link_libraries(libPlanner
4949
add_executable(stars ${EXEC_SOURCE})
5050
target_link_libraries(stars libPlanner libvpr)
5151

52+
set_target_properties(stars libPlanner PROPERTIES INTERPROCEDURAL_OPTIMIZATION OFF)
53+
5254
install(TARGETS stars DESTINATION bin)
5355

0 commit comments

Comments
 (0)