Skip to content

How to pass target specific flags when cross compiling? #41596

Answered by Osyotr
abique asked this question in Q&A
Discussion options

You must be logged in to vote

Just set different values for VCPKG_C_FLAGS in host and target triplet.
https://learn.microsoft.com/en-us/vcpkg/users/triplets#vcpkg_cxx_flags

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@abique
Comment options

@Osyotr
Comment options

@abique
Comment options

@Osyotr
Comment options

@dg0yt
Comment options

Answer selected by abique
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants