From 0139cb4e2779aaebc00ef0a9b3cff2d78132c50b Mon Sep 17 00:00:00 2001 From: N0tell Date: Sat, 1 Apr 2023 16:34:44 +0800 Subject: [PATCH 1/2] make some hints (#2078) --- INSTALL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/INSTALL.md b/INSTALL.md index 74b8e09b15..a5fb65f9ad 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -229,7 +229,7 @@ load("@io_opentelemetry_cpp//bazel:repository.bzl", "opentelemetry_cpp_deps") opentelemetry_cpp_deps() -# Load extra dependencies required for OpenTelemetry +# (required after v1.8.0) Load extra dependencies required for OpenTelemetry load("@io_opentelemetry_cpp//bazel:extra_deps.bzl", "opentelemetry_extra_deps") opentelemetry_extra_deps() From 9bcfcb99ffb7e03f9f8d502ccc3c7991bc35fcef Mon Sep 17 00:00:00 2001 From: Cengizhan Pasaoglu Date: Sat, 1 Apr 2023 18:17:40 +0200 Subject: [PATCH 2/2] Make Windows build environment parallel (#2080) * Make Windows build environment parallel with help of Ninja * Add number of processors explicitly as an argument to CMake --------- Co-authored-by: Marc Alff --- ci/do_ci.ps1 | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/ci/do_ci.ps1 b/ci/do_ci.ps1 index 637e63defc..0ffe716ca1 100644 --- a/ci/do_ci.ps1 +++ b/ci/do_ci.ps1 @@ -6,6 +6,8 @@ trap { $host.SetShouldExit(1) } $action = $args[0] +$nproc = (Get-ComputerInfo).CsNumberOfLogicalProcessors + $SRC_DIR = (Get-Item -Path ".\").FullName $BAZEL_OPTIONS = "--copt=-DENABLE_LOGS_PREVIEW --copt=-DENABLE_ASYNC_EXPORT" @@ -40,7 +42,7 @@ switch ($action) { if ($exit -ne 0) { exit $exit } - cmake --build . + cmake --build . -j $nproc $exit = $LASTEXITCODE if ($exit -ne 0) { exit $exit @@ -61,7 +63,7 @@ switch ($action) { if ($exit -ne 0) { exit $exit } - cmake --build . + cmake --build . -j $nproc $exit = $LASTEXITCODE if ($exit -ne 0) { exit $exit @@ -90,7 +92,7 @@ switch ($action) { if ($exit -ne 0) { exit $exit } - cmake --build . + cmake --build . -j $nproc $exit = $LASTEXITCODE if ($exit -ne 0) { exit $exit @@ -111,7 +113,7 @@ switch ($action) { if ($exit -ne 0) { exit $exit } - cmake --build . + cmake --build . -j $nproc $exit = $LASTEXITCODE if ($exit -ne 0) { exit $exit @@ -132,7 +134,7 @@ switch ($action) { if ($exit -ne 0) { exit $exit } - cmake --build . + cmake --build . -j $nproc $exit = $LASTEXITCODE if ($exit -ne 0) { exit $exit @@ -154,7 +156,7 @@ switch ($action) { if ($exit -ne 0) { exit $exit } - cmake --build . + cmake --build . -j $nproc $exit = $LASTEXITCODE if ($exit -ne 0) { exit $exit @@ -176,7 +178,7 @@ switch ($action) { if ($exit -ne 0) { exit $exit } - cmake --build . + cmake --build . -j $nproc $exit = $LASTEXITCODE if ($exit -ne 0) { exit $exit @@ -197,7 +199,7 @@ switch ($action) { if ($exit -ne 0) { exit $exit } - cmake --build . + cmake --build . -j $nproc $exit = $LASTEXITCODE if ($exit -ne 0) { exit $exit @@ -214,7 +216,7 @@ switch ($action) { if ($exit -ne 0) { exit $exit } - cmake --build . + cmake --build . -j $nproc $exit = $LASTEXITCODE if ($exit -ne 0) { exit $exit