ladybird/Meta/CMake/vcpkg
Andrew Kaster 8e5d28de3c CMake: Force vcpkg to use CMAKE_CXX_COMPILER as specified to CMake
Override the vcpkg/scripts/detect_compiler behavior of always pulling
$CC and $CXX at the time that vcpkg install is determined to need called
by forcing $ENV{CXX} and $ENV{CC} to our CMake-determined compiler.

This prevents strange behavior such as running the following:

./Meta/ladybird.sh run
    make changes...
ninja -C Build/ladybird

Where the second build step would be run without CC or CXX set in the
environment, causing a total cache miss from vcpkg and a full rebuild.

It also helps prevent full rebuilds when an IDE passes a slightly
different compiler to the build step than ladybird.sh.
2024-07-18 14:48:20 +02:00
..
base-triplets CMake: Force vcpkg to use CMAKE_CXX_COMPILER as specified to CMake 2024-07-18 14:48:20 +02:00
debug-triplets CMake: Add triplets for arm64-linux 2024-07-07 15:56:59 +02:00
overlay-ports/vulkan Meta: Tell vcpkg we don't need to build vulkan-loader 2024-07-07 09:51:29 -06:00
release-triplets CMake: Add triplets for arm64-linux 2024-07-07 15:56:59 +02:00
sanitizer-triplets CMake: Add triplets for arm64-linux 2024-07-07 15:56:59 +02:00
generate_vcpkg_toolchain_variables.cmake CMake: Force vcpkg to use CMAKE_CXX_COMPILER as specified to CMake 2024-07-18 14:48:20 +02:00