Skip to content

Commit

Permalink
remove additional variations of the lto flag
Browse files Browse the repository at this point in the history
  • Loading branch information
assignUser committed Jan 9, 2024
1 parent b1a7c78 commit d03e001
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cpp/cmake_modules/ThirdpartyToolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4848,11 +4848,14 @@ macro(build_awssdk)
# Link time optimization is causing trouble like #34349
string(REPLACE "-flto=auto" "" AWS_LC_C_FLAGS "${AWS_LC_C_FLAGS}")
string(REPLACE "-ffat-lto-objects" "" AWS_LC_C_FLAGS "${AWS_LC_C_FLAGS}")
# Added by R with --enable/use-lto see #39523
string(REPLACE "-flto" "" AWS_LC_C_FLAGS "${AWS_LC_C_FLAGS}")
string(REPLACE "-flto=10" "" AWS_LC_C_FLAGS "${AWS_LC_C_FLAGS}")

set(AWS_LC_CMAKE_ARGS ${AWSSDK_COMMON_CMAKE_ARGS})
list(APPEND AWS_LC_CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${AWS_LC_PREFIX}
-DCMAKE_C_FLAGS=${AWS_LC_C_FLAGS})

externalproject_add(aws_lc_ep
${EP_COMMON_OPTIONS}
URL ${AWS_LC_SOURCE_URL}
Expand Down

0 comments on commit d03e001

Please sign in to comment.