Skip to content

Commit 3074608

Browse files
varunagrawalhenryiii
authored andcommittedAug 13, 2024
fix(cmake): remove extra = in flto assignment (#5207)
1 parent 941f45b commit 3074608

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎tools/pybind11Common.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ function(_pybind11_generate_lto target prefer_thin_lto)
335335
set(PYBIND11_LTO_LINKER_FLAGS "-flto${thin}${linker_append}")
336336
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
337337
_pybind11_return_if_cxx_and_linker_flags_work(
338-
HAS_FLTO_THIN "-flto${thin}${cxx_append}" "-flto=${thin}${linker_append}"
338+
HAS_FLTO_THIN "-flto${thin}${cxx_append}" "-flto${thin}${linker_append}"
339339
PYBIND11_LTO_CXX_FLAGS PYBIND11_LTO_LINKER_FLAGS)
340340
endif()
341341
if(NOT HAS_FLTO_THIN)

0 commit comments

Comments
 (0)
Please sign in to comment.