You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This script is used to continually test libc++ and libc++abi trunk on MacOS.
10
10
11
-
--libcxx-root Full path to the root of the libc++ repository to test.
12
-
--libcxxabi-root Full path to the root of the libc++abi repository to test.
11
+
--monorepo-root Full path to the root of the LLVM monorepo. Both libc++ and libc++abi from the monorepo are used.
13
12
--std Version of the C++ Standard to run the tests under (c++03, c++11, etc..).
14
13
--arch Architecture to build the tests for (32, 64).
15
14
--libcxx-exceptions Whether to enable exceptions when building libc++ and running the libc++ tests. libc++abi is always built with support for exceptions because other libraries in the runtime depend on it (like libobjc). This must be ON or OFF.
@@ -22,19 +21,10 @@ EOM
22
21
23
22
while [[ $#-gt 0 ]];do
24
23
case"$1"in
25
-
--libcxx-root)
26
-
LIBCXX_ROOT="${2}"
27
-
if [[ !-e"${LIBCXX_ROOT}" ]];then
28
-
echo"--libcxx-root '${LIBCXX_ROOT}' is not a valid directory"
29
-
usage
30
-
exit 1
31
-
fi
32
-
shift;shift
33
-
;;
34
-
--libcxxabi-root)
35
-
LIBCXXABI_ROOT="${2}"
36
-
if [[ !-e"${LIBCXXABI_ROOT}" ]];then
37
-
echo"--libcxxabi-root '${LIBCXXABI_ROOT}' is not a valid directory"
24
+
--monorepo-root)
25
+
MONOREPO_ROOT="${2}"
26
+
if [[ !-e"${MONOREPO_ROOT}" ]];then
27
+
echo"--monorepo-root '${MONOREPO_ROOT}' is not a valid directory"
38
28
usage
39
29
exit 1
40
30
fi
@@ -76,8 +66,7 @@ while [[ $# -gt 0 ]]; do
76
66
esac
77
67
done
78
68
79
-
if [[ -z${LIBCXX_ROOT+x} ]];thenecho"--libcxx-root is a required parameter"; usage;exit 1;fi
80
-
if [[ -z${LIBCXXABI_ROOT+x} ]];thenecho"--libcxxabi-root is a required parameter"; usage;exit 1;fi
69
+
if [[ -z${MONOREPO_ROOT+x} ]];thenecho"--monorepo-root is a required parameter"; usage;exit 1;fi
81
70
if [[ -z${STD+x} ]];thenecho"--std is a required parameter"; usage;exit 1;fi
82
71
if [[ -z${ARCH+x} ]];thenecho"--arch is a required parameter"; usage;exit 1;fi
83
72
if [[ "${LIBCXX_EXCEPTIONS}"!="ON"&&"${LIBCXX_EXCEPTIONS}"!="OFF" ]];thenecho"--libcxx-exceptions is a required parameter and must be either ON or OFF"; usage;exit 1;fi
0 commit comments