Unverified Commit 2e6ba6ec authored by wadsaek's avatar wadsaek
Browse files

netcoredbg: fix build with cmake 4

parent 3a7acdd5
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -44,6 +44,15 @@ let

    hardeningDisable = [ "strictoverflow" ];

    postPatch = ''
      substituteInPlace CMakeLists.txt --replace-fail \
        "cmake_minimum_required(VERSION 2.8.12.2)" \
        "cmake_minimum_required(VERSION 3.10)"
      substituteInPlace third_party/linenoise-ng/CMakeLists.txt --replace-fail \
        "cmake_minimum_required(VERSION 2.6)" \
        "cmake_minimum_required(VERSION 3.10)"
    '';

    preConfigure = ''
      export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
    '';