Clang++ LDFLAGS, CXXFLAGS, CFLAGS #27656
uNetworkingAB
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
Here is an example how I do it currently: vcpkg install libuv:x64-windows (now I use clang) |
Beta Was this translation helpful? Give feedback.
1 reply
-
Use pkg-config for whatever you are consuming. |
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
-
After installing a package, you need to pass -L and -I flags to Clang/Clang++ for it to know about the package. It would be very minimal and easy, if vcpkg would either set LDFLAGS, CXXFLAGS and CFLAGS directly, or if you prefer some kind of VCPKG_LDFLAGS, VCPKG_CXXFLAGS, VCPKG_CFLAGS.
Note that vcpkg would only set (capital L, capital I) -L and -I (library path, include path) but leave the "link to" flag (lower case L) out of it.
Then we who use raw Clang can just pass those environment variables to the clang command (which we already do) and have everything work just as easy as if we were on a Linux dist.
Beta Was this translation helpful? Give feedback.
All reactions