Skip to content

Commit 984619c

Browse files
varunagrawalhenryiii
authored andcommitted
fix(cmake): remove extra = in flto assignment (#5207)
1 parent 589a1cd commit 984619c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/pybind11Common.cmake

Lines changed: 1 addition & 1 deletion
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)