Update tools.

We haven't done this in a while. This also tests more codepaths in
in the previous Python 3 update.

libc++ required a few more build tweaks. Also the CMake update was
necessary to update the NDK. Older CMake cannot detect CMAKE_LINKER
in the newer NDK.

Change-Id: I59ab1c6b074b805dd4b8a6ab596c4cf469d5bfa9
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/50167
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: Adam Langley <agl@google.com>
grpc-202302
David Benjamin 3 years ago committed by Boringssl LUCI CQ
parent 9fd1637569
commit 16b3af7d22
  1. 3
      CMakeLists.txt
  2. 22
      util/bot/DEPS
  3. 6
      util/bot/libcxx-config/__config_site
  4. 4
      util/bot/update_clang.py

@ -505,6 +505,7 @@ if(USE_CUSTOM_LIBCXX)
set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -nostdlib++") set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -nostdlib++")
include_directories( include_directories(
SYSTEM SYSTEM
util/bot/libcxx-config
util/bot/libcxx/include util/bot/libcxx/include
util/bot/libcxxabi/include util/bot/libcxxabi/include
) )
@ -531,6 +532,8 @@ if(USE_CUSTOM_LIBCXX)
-D_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS -D_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS
) )
set_target_properties(libcxxabi PROPERTIES COMPILE_FLAGS "-Wno-missing-prototypes -Wno-implicit-fallthrough") set_target_properties(libcxxabi PROPERTIES COMPILE_FLAGS "-Wno-missing-prototypes -Wno-implicit-fallthrough")
# libc++abi depends on libc++ internal headers.
set_property(TARGET libcxxabi APPEND PROPERTY INCLUDE_DIRECTORIES "${CMAKE_SOURCE_DIR}/util/bot/libcxx/src")
add_library(libcxx ${LIBCXX_SOURCES}) add_library(libcxx ${LIBCXX_SOURCES})
if(ASAN OR MSAN OR TSAN) if(ASAN OR MSAN OR TSAN)

@ -25,27 +25,17 @@ vars = {
# cipd describe PACKAGE_NAME -version latest # cipd describe PACKAGE_NAME -version latest
# infra/3pp/tools/cmake/linux-amd64 # infra/3pp/tools/cmake/linux-amd64
# 'cmake_version': 'version:2@3.21.3',
# TODO(https://crbug.com/1176531): Update to a newer CMake when available
# from CIPD. This is currently blocked on the linked bug.
'cmake_version': 'version:3.13.5',
# infra/3pp/tools/go/linux-amd64 # infra/3pp/tools/go/linux-amd64
'go_version': 'version:1.16', 'go_version': 'version:2@1.17.2',
# Update the following from # Update the following from
# https://chromium.googlesource.com/chromium/src/+/master/DEPS # https://chromium.googlesource.com/chromium/src/+/master/DEPS
'android_sdk_platform-tools_version': 'Jxtur3_L9RzY4q79K-AwIahwFW4oi5uYVD5URx9h62wC', 'android_sdk_platform-tools_version': 'g7n_-r6yJd_SGRklujGB1wEt8iyr77FZTUJVS9w6O34C',
# TODO(davidben): Before updating this, update the builders to specify 'android_ndk_revision': '401019bf85744311b26c88ced255cd53401af8b7',
# ANDROID_ARM_NEON=0. The NDK now defaults armeabi-v7a to assuming NEON, but
# we wish to retain test coverage for non-NEON code. (Perhaps worth having
# both configurations.)
'android_ndk_revision': '27c0a8d090c666a50e40fceb4ee5b40b1a2d3f87',
'libfuzzer_revision': 'debe7d2d1982e540fbd6bd78604bf001753f9e74', 'libfuzzer_revision': 'debe7d2d1982e540fbd6bd78604bf001753f9e74',
'libcxx_revision': '79a2e924d96e2fc1e4b937c42efd08898fa472d7',
# Update the following from 'libcxxabi_revision': '9b8228b4a9be26e0881f36089d9a8d62df851acc',
# https://chromium.googlesource.com/chromium/src/+/master/buildtools/DEPS
'libcxx_revision': 'd9040c75cfea5928c804ab7c235fed06a63f743a',
'libcxxabi_revision': '196ba1aaa8ac285d94f4ea8d9836390a45360533',
} }
deps = { deps = {

@ -0,0 +1,6 @@
#ifndef BORINGSSL_LIBCXX_CONFIG_SITE_
#define BORINGSSL_LIBCXX_CONFIG_SITE_
#define _LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS
#endif // BORINGSSL_LIBCXX_CONFIG_SITE_

@ -28,8 +28,8 @@ except ImportError:
# CLANG_REVISION and CLANG_SUB_REVISION determine the build of clang # CLANG_REVISION and CLANG_SUB_REVISION determine the build of clang
# to use. These should be synced with tools/clang/scripts/update.py in # to use. These should be synced with tools/clang/scripts/update.py in
# Chromium. # Chromium.
CLANG_REVISION = 'llvmorg-13-init-794-g83e2710e' CLANG_REVISION = 'llvmorg-14-init-6722-g0fbd3aad'
CLANG_SUB_REVISION = 1 CLANG_SUB_REVISION = 2
PACKAGE_VERSION = '%s-%s' % (CLANG_REVISION, CLANG_SUB_REVISION) PACKAGE_VERSION = '%s-%s' % (CLANG_REVISION, CLANG_SUB_REVISION)

Loading…
Cancel
Save