Discussion: Can vcpkg use the compiler specified from the CMake command line arguments in manifest mode? #41140
xb284524239
started this conversation in
General
Replies: 1 comment 2 replies
-
No. You have to write a toolchain file and a custom triplet. See https://learn.microsoft.com/en-us/vcpkg/users/triplets#vcpkg_chainload_toolchain_file |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my screenshot, I have selected the
Clang 19.1.0 x86_64-pc-windows-msvc
kit, butvcpkg
always usesMSVC (cl.exe)
to compile the third-party libraries. However, my own source code will be compiled withclang++.exe
.Although the entire compilation process completes without errors, and the program can run, I am still concerned about potential ABI compatibility issues between the third-party libraries and my own source code, because they are compiled with two different compilers.
BTW, I use
LLVM (Clang)
because tools likeclangd
,clang-tidy
,clang-format
, etc., are helpful for me.Beta Was this translation helpful? Give feedback.
All reactions