add vcpkg-wide (optional) feature support #19070
crusader-mike
started this conversation in
Ideas
Replies: 1 comment
-
one more:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I propose to introduce a concept of a feature -- this is something that is set in the triplet definition and is supposed to be used in every port being installed using that triplet.
It would be nice to have following features:
VCPKG_LIBRARY_LTO
-- this feature turns on link-time-optimization for all ports (CMAKE_INTERPROCEDURAL_OPTIMIZATION
if port is using CMake)VCPKG_LIBRARY_SYM_GC
-- this is equivalent to-ffunction-sections -fdata-sections -Wl,--gc-sections
used withgcc
VCPKG_LIBRARY_PIC
-- to generate position-independent code (to be used ifVCPKG_LIBRARY_LINKAGE
isstatic
)Notes:
optional
will be default andmandatory
will be used by people who need to be absolutely sure that feature is used by every port (being used), even if port definition got updatedvcpkg list
should (be able to) list features given port was installed with, e.g.:vcpkg_*
function most ports are using)VCPKG_LIBRARY_LINKAGE
is set todynamic
)Beta Was this translation helpful? Give feedback.
All reactions