netcoredbg: fix build

This commit is contained in:
mdarocha 2022-07-20 09:53:11 +02:00
parent fd24ea2e6a
commit f9b5d5dcbf

View File

@ -30,7 +30,9 @@ let
hardeningDisable = [ "strictoverflow" ];
preConfigure = ''
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
dotnetVersion="$(${dotnet-sdk}/bin/dotnet --list-runtimes | grep -Po '^Microsoft.NETCore.App \K.*?(?= )')"
cmakeFlagsArray+=(
"-DDBGSHIM_RUNTIME_DIR=${dotnet-sdk}/shared/Microsoft.NETCore.App/$dotnetVersion"
)