From 9336b14d1518eaf6bc2412f26fcccc86ee8b53fa Mon Sep 17 00:00:00 2001 From: Cory Virok Date: Sat, 12 Oct 2024 12:59:36 -0700 Subject: [PATCH] Meta: Clean up generated CMake uservars Prior to this change, running ./Meta/ladybird.sh rebuild would not remove the user-variables.cmake file that was generated by the build script. This caused errors when testing out the .devcontainer on my Mac because the pkg-config binary lived in different dirs in the container vs host.debug --- Meta/ladybird.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Meta/ladybird.sh b/Meta/ladybird.sh index c989ce3f4ba..2255f53f88e 100755 --- a/Meta/ladybird.sh +++ b/Meta/ladybird.sh @@ -134,6 +134,10 @@ build_target() { delete_target() { [ ! -d "$BUILD_DIR" ] || rm -rf "$BUILD_DIR" + + # Delete the vcpkg user variables created by this script if they exist + VCPKG_USER_VARS="$LADYBIRD_SOURCE_DIR/Meta/CMake/vcpkg/user-variables.cmake" + [ ! -f "$VCPKG_USER_VARS" ] || rm "$VCPKG_USER_VARS" } build_vcpkg() {