[libcxx-commits] [libcxx] 513f094 - [libc++][CI] Improves buildbot runner.

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Thu Dec 22 10:49:57 PST 2022


Author: Mark de Wever
Date: 2022-12-22T19:49:50+01:00
New Revision: 513f094f623d1f3c5a4970587fc30f61a5c90bc8

URL: https://github.com/llvm/llvm-project/commit/513f094f623d1f3c5a4970587fc30f61a5c90bc8
DIFF: https://github.com/llvm/llvm-project/commit/513f094f623d1f3c5a4970587fc30f61a5c90bc8.diff

LOG: [libc++][CI] Improves buildbot runner.

Adds documentation and shows a help message when running the script
without arguments.

Lands parts of D139545.

Added: 
    

Modified: 
    libcxx/utils/ci/run-buildbot

Removed: 
    


################################################################################
diff  --git a/libcxx/utils/ci/run-buildbot b/libcxx/utils/ci/run-buildbot
index 4759f0e67eb4a..eb72ed4e44c5c 100755
--- a/libcxx/utils/ci/run-buildbot
+++ b/libcxx/utils/ci/run-buildbot
@@ -32,9 +32,24 @@ ${PROGNAME} [options] <BUILDER>
                     them from Green Dragon. This is only relevant at all when
                     running back-deployment testing if one wants to override
                     the old dylibs we use to run the tests with 
diff erent ones.
+Environment variables
+CC                  The C compiler to use, this value is used by CMake. This
+                    variable is optional.
+CXX                 The C++ compiler to use, this value is used by CMake. This
+                    variable is optional.
+
+GIT_CLANG_FORMAT    The git-clang-format binary to use in the 'format' builder.
+                    When the value is omitted, it defaults to
+                    'git-clang-format'. This variable or its fallback must work
+                    when running the 'format' builder.
 EOF
 }
 
+if [[ $# == 0 ]]; then
+   usage
+   exit 0
+fi
+
 while [[ $# -gt 0 ]]; do
     case ${1} in
         -h|--help)


        


More information about the libcxx-commits mailing list