From b31447b54c60c401c3791e0e100b5d49ee682922 Mon Sep 17 00:00:00 2001 From: dscanteianu Date: Wed, 29 Jan 2025 18:38:53 +0000 Subject: [PATCH] add wsl option --- configureBuild.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configureBuild.sh b/configureBuild.sh index 8606be3ec..89dba0542 100755 --- a/configureBuild.sh +++ b/configureBuild.sh @@ -163,6 +163,11 @@ setVariablesForConfigure() { BUILD_CONFIG[TEST_IMAGE_PATH]=$openjdk_test_image_path BUILD_CONFIG[DEBUG_IMAGE_PATH]=$openjdk_debug_image_path BUILD_CONFIG[STATIC_LIBS_IMAGE_PATH]=$static_libs_path + echo "wsl val:" $WSL + if ! [[ -z ${WSL+x} ]]; then + echo "building in wsl mode" + BUILD_CONFIG[USER_SUPPLIED_CONFIGURE_ARGS]="--build=x86_64-unknown-linux-gnu --openjdk-target=x86_64-unknown-linux-gnu" + fi } # Set the repository to build from, defaults to adoptium if not set by the user