We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6292b70 commit 580494cCopy full SHA for 580494c
tools/pybind11Common.cmake
@@ -363,6 +363,11 @@ function(_pybind11_generate_lto target prefer_thin_lto)
363
PYBIND11_LTO_CXX_FLAGS PYBIND11_LTO_LINKER_FLAGS)
364
endif()
365
if(NOT HAS_FLTO_THIN)
366
+ _pybind11_return_if_cxx_and_linker_flags_work(
367
+ HAS_FLTO_AUTO "-flto=auto${cxx_append}" "-flto=auto${linker_append}"
368
+ PYBIND11_LTO_CXX_FLAGS PYBIND11_LTO_LINKER_FLAGS)
369
+ endif()
370
+ if(NOT HAS_FLTO_AUTO)
371
_pybind11_return_if_cxx_and_linker_flags_work(
372
HAS_FLTO "-flto${cxx_append}" "-flto${linker_append}" PYBIND11_LTO_CXX_FLAGS
373
PYBIND11_LTO_LINKER_FLAGS)
0 commit comments