Skip to content

Commit 69c50fd

Browse files
Merge branch 'main' into nfc-gen-char-compare
2 parents 5d0ef79 + 1500536 commit 69c50fd

File tree

541 files changed

+24149
-12109
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

541 files changed

+24149
-12109
lines changed

.ci/monolithic-linux.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,13 @@ cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
6464

6565
start-group "ninja"
6666

67-
# Targets are not escaped as they are passed as separate arguments.
68-
ninja -C "${BUILD_DIR}" -k 0 ${targets} |& tee ninja.log
69-
cp ${BUILD_DIR}/.ninja_log ninja.ninja_log
67+
if [[ -n "${targets}" ]]; then
68+
# Targets are not escaped as they are passed as separate arguments.
69+
ninja -C "${BUILD_DIR}" -k 0 ${targets} |& tee ninja.log
70+
cp ${BUILD_DIR}/.ninja_log ninja.ninja_log
71+
fi
7072

71-
if [[ "${runtime_targets}" != "" ]]; then
73+
if [[ -n "${runtime_targets}" ]]; then
7274
start-group "ninja Runtimes"
7375

7476
ninja -C "${BUILD_DIR}" ${runtime_targets} |& tee ninja_runtimes.log
@@ -77,7 +79,7 @@ fi
7779

7880
# Compiling runtimes with just-built Clang and running their tests
7981
# as an additional testing for Clang.
80-
if [[ "${runtime_targets_needs_reconfig}" != "" ]]; then
82+
if [[ -n "${runtime_targets_needs_reconfig}" ]]; then
8183
start-group "CMake Runtimes C++26"
8284

8385
cmake \

.ci/monolithic-windows.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,13 @@ cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
5151

5252
start-group "ninja"
5353

54-
# Targets are not escaped as they are passed as separate arguments.
55-
ninja -C "${BUILD_DIR}" -k 0 ${targets} |& tee ninja.log
56-
cp ${BUILD_DIR}/.ninja_log ninja.ninja_log
54+
if [[ -n "${targets}" ]]; then
55+
# Targets are not escaped as they are passed as separate arguments.
56+
ninja -C "${BUILD_DIR}" -k 0 ${targets} |& tee ninja.log
57+
cp ${BUILD_DIR}/.ninja_log ninja.ninja_log
58+
fi
5759

58-
if [[ "${runtimes_targets}" != "" ]]; then
60+
if [[ -n "${runtimes_targets}" ]]; then
5961
start-group "ninja runtimes"
6062

6163
ninja -C "${BUILD_DIR}" -k 0 ${runtimes_targets} |& tee ninja_runtimes.log

.ci/premerge_advisor_explain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def main(
148148

149149
# Skip looking for results on AArch64 for now because the premerge advisor
150150
# service is not available on AWS currently.
151-
if platform.machine() == "arm64":
151+
if platform.machine() == "arm64" or platform.machine() == "aarch64":
152152
sys.exit(0)
153153

154154
main(

.ci/premerge_advisor_upload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def main(commit_sha, workflow_run_number, build_log_files):
5959

6060
# Skip uploading results on AArch64 for now because the premerge advisor
6161
# service is not available on AWS currently.
62-
if platform.machine() == "arm64":
62+
if platform.machine() == "arm64" or platform.machine() == "aarch64":
6363
sys.exit(0)
6464

6565
main(args.commit_sha, args.workflow_run_number, args.build_log_files)

.ci/utils.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function at-exit {
3333
# If building fails there will be no results files.
3434
shopt -s nullglob
3535

36-
if [[ "$GITHUB_ACTIONS" != "" ]]; then
36+
if [[ -n "$GITHUB_ACTIONS" ]]; then
3737
python "${MONOREPO_ROOT}"/.ci/generate_test_report_github.py \
3838
$retcode "${BUILD_DIR}"/test-results.*.xml "${MONOREPO_ROOT}"/ninja*.log \
3939
>> $GITHUB_STEP_SUMMARY
@@ -44,7 +44,7 @@ function at-exit {
4444
fi
4545

4646
if [[ "$retcode" != "0" ]]; then
47-
if [[ "$GITHUB_ACTIONS" != "" ]]; then
47+
if [[ -n "$GITHUB_ACTIONS" ]]; then
4848
python "${MONOREPO_ROOT}"/.ci/premerge_advisor_upload.py \
4949
$(git rev-parse HEAD~1) $GITHUB_RUN_NUMBER \
5050
"${BUILD_DIR}"/test-results.*.xml "${MONOREPO_ROOT}"/ninja*.log
@@ -59,10 +59,10 @@ trap at-exit EXIT
5959

6060
function start-group {
6161
groupname=$1
62-
if [[ "$GITHUB_ACTIONS" != "" ]]; then
62+
if [[ -n "$GITHUB_ACTIONS" ]]; then
6363
echo "::endgroup"
6464
echo "::group::$groupname"
65-
elif [[ "$POSTCOMMIT_CI" != "" ]]; then
65+
elif [[ -n "$POSTCOMMIT_CI" ]]; then
6666
echo "@@@$STEP@@@"
6767
else
6868
echo "Starting $groupname"
@@ -73,6 +73,6 @@ export PIP_BREAK_SYSTEM_PACKAGES=1
7373
pip install -q -r "${MONOREPO_ROOT}"/.ci/all_requirements.txt
7474

7575
# The ARM64 builders run on AWS and don't have access to the GCS cache.
76-
if [[ "$GITHUB_ACTIONS" != "" ]] && [[ "$RUNNER_ARCH" != "ARM64" ]]; then
76+
if [[ -n "$GITHUB_ACTIONS" ]] && [[ "$RUNNER_ARCH" != "ARM64" ]]; then
7777
python .ci/cache_lit_timing_files.py download
7878
fi

0 commit comments

Comments
 (0)