Skip to content

Commit

Permalink
Restrict no inlining flags for compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Hidalgo <[email protected]>
  • Loading branch information
hidmic committed Oct 1, 2024
1 parent 4dfc931 commit f4205ad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 23 deletions.
10 changes: 1 addition & 9 deletions beluga/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
-Wpedantic)
endif()
if(CMAKE_BUILD_TYPE MATCHES "Debug")
if(CMAKE_COMPILER_IS_GNUCXX)
target_compile_options(
beluga_compile_options INTERFACE -fno-inline -fno-inline-small-functions
-fno-default-inline)
endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(beluga_compile_options
INTERFACE -fno-inline-functions)
endif()
target_compile_options(beluga_compile_options INTERFACE -fno-inline)
endif()

find_package(Eigen3 REQUIRED NO_MODULE)
Expand Down
8 changes: 1 addition & 7 deletions beluga_amcl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
-Wpedantic)
endif()
if(CMAKE_BUILD_TYPE MATCHES "Debug")
if(CMAKE_COMPILER_IS_GNUCXX)
add_compile_options(-fno-inline -fno-inline-small-functions
-fno-default-inline)
endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-fno-inline-functions)
endif()
add_compile_options(-fno-inline)
endif()

set(ROS_VERSION $ENV{ROS_VERSION})
Expand Down
8 changes: 1 addition & 7 deletions beluga_ros/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
-Wpedantic)
endif()
if(CMAKE_BUILD_TYPE MATCHES "Debug")
if(CMAKE_COMPILER_IS_GNUCXX)
add_compile_options(-fno-inline -fno-inline-small-functions
-fno-default-inline)
endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-fno-inline-functions)
endif()
add_compile_options(-fno-inline)
endif()

set(ROS_VERSION $ENV{ROS_VERSION})
Expand Down

0 comments on commit f4205ad

Please sign in to comment.