Fix silent fallback to Debug when building native libs (#51210)
authorMansoor Saqib <mnsrbx@gmail.com>
Thu, 15 Apr 2021 05:53:31 +0000 (22:53 -0700)
committerGitHub <noreply@github.com>
Thu, 15 Apr 2021 05:53:31 +0000 (07:53 +0200)
commit2588311215b3e9b49c695369941698f333f52fe9
tree7a8744b4eb418fef23465c4194fca5a032ee3d25
parentb482c04080bb86f151e8fe3d6f2fe61649c1b5fa
Fix silent fallback to Debug when building native libs (#51210)

* Currently the CMAKE_BUILD_TYPE is not being passed in when
  creating the native library intermediates.
* Before the change to Ninja for CMake generation (8c2158f9fe1)
  the default uninitialized cmake build type was set to Release so the
  bug was not visible.
* After the Ninja change, the default uninitialized cmake build type
  is set to Debug so it becomes more apparent.
* This improves performance of native libs like System.IO.Compression
  by a considerable amount as they are currently being built in Debug,
  even when the Release configuration is specified.
src/libraries/Native/build-native.cmd