Ver código fonte

Support Ubuntu 22, drop Ubuntu 18 from CI

Ubuntu 22.04 comes with Clang 14.

Drop Ubuntu 18.04 from Azure testing, as it is getting deprecation warnings now
(also Canonical stops maintaining software packages after four years, I
believe). Add Ubuntu 22.04.

Fix Clang 14 compilation error. Minor change to init
RecyclerObjectGraphDumper::dumpObjectIsArray with a bool, even though the
assignment is guarded against via an Assert().
Petr Penzin 3 anos atrás
pai
commit
2376ebe584

+ 7 - 7
azure-pipelines.yml

@@ -33,27 +33,27 @@ jobs:
       maxParallel: 6
       matrix:
         Linux.NoJit:
-          image_name: 'ubuntu-20.04'
+          image_name: 'ubuntu-22.04'
           deps: 'sudo apt-get install -y ninja-build clang libicu-dev'
           build_type: 'Debug'
           libtype_flag: '-DDISABLE_JIT=ON'
         Linux.ReleaseWithDebug:
-          image_name: 'ubuntu-20.04'
+          image_name: 'ubuntu-22.04'
           deps: 'sudo apt-get install -y ninja-build clang libicu-dev'
           build_type: 'RelWithDebInfo'
           libtype_flag: ''
         Linux.Release:
-          image_name: 'ubuntu-20.04'
+          image_name: 'ubuntu-22.04'
           deps: 'sudo apt-get install -y ninja-build clang libicu-dev'
           build_type: 'Release'
           libtype_flag: ''
-        Ubuntu18.ReleaseWithDebug:
-          image_name: 'ubuntu-18.04'
+        Ubuntu20.ReleaseWithDebug:
+          image_name: 'ubuntu-20.04'
           deps: 'sudo apt-get install -y ninja-build clang libicu-dev'
           build_type: 'RelWithDebInfo'
           libtype_flag: ''
-        Ubuntu18.Release:
-          image_name: 'ubuntu-18.04'
+        Ubuntu20.Release:
+          image_name: 'ubuntu-20.04'
           deps: 'sudo apt-get install -y ninja-build clang libicu-dev'
           build_type: 'Release'
           libtype_flag: ''

+ 2 - 1
lib/Common/Memory/RecyclerObjectGraphDumper.cpp

@@ -1,5 +1,6 @@
 //-------------------------------------------------------------------------------------------------------
 // Copyright (C) Microsoft. All rights reserved.
+// Copyright (c) 2021 ChakraCore Project Contributors. All rights reserved.
 // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
 //-------------------------------------------------------------------------------------------------------
 #include "CommonMemoryPch.h"
@@ -58,7 +59,7 @@ void RecyclerObjectGraphDumper::BeginDumpObject(void * objectAddress)
         {
             Assert(false);
             this->dumpObjectTypeInfo = nullptr;
-            this->dumpObjectIsArray = nullptr;
+            this->dumpObjectIsArray = false;
         }
     }
 #endif