Lines Matching +full:libcxx +full:-

3 set -ue
7-h|--help] --libcxx-root <LIBCXX-ROOT> --libcxxabi-root <LIBCXXABI-ROOT> --std <STD> --arch <ARCHI…
9 This script is used to continually test the back-deployment use case of libc++ and libc++abi on Mac…
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.
13 --std Version of the C++ Standard to run the tests under (c++03, c++11, etc..).
14 --arch Architecture to build the tests for (32, 64).
15--deployment-target The deployment target to run the tests for. This should be a version number of…
16--sdk-version The version of the SDK to test with. This should be a version number of MacOS …
17 …[--lit-args] Additional arguments to pass to lit (optional). If there are multiple argument…
18 …[--no-cleanup] Do not cleanup the temporary directory that was used for testing at the end. T…
19 [-h, --help] Print this help.
23 while [[ $# -gt 0 ]]; do
25 --libcxx-root)
27 if [[ ! -d "${LIBCXX_ROOT}" ]]; then
28 echo "--libcxx-root '${LIBCXX_ROOT}' is not a valid directory"
34 --libcxxabi-root)
36 if [[ ! -d "${LIBCXXABI_ROOT}" ]]; then
37 echo "--libcxxabi-root '${LIBCXXABI_ROOT}' is not a valid directory"
43 --std)
47 --arch)
51 --deployment-target)
55 --sdk-version)
59 --lit-args)
63 --no-cleanup)
67 -h|--help)
79 if [[ -z ${LIBCXX_ROOT+x} ]]; then echo "--libcxx-root is a required parameter"; usage; exit 1; fi
80 if [[ -z ${LIBCXXABI_ROOT+x} ]]; then echo "--libcxxabi-root is a required parameter"; usage; exit …
81 if [[ -z ${STD+x} ]]; then echo "--std is a required parameter"; usage; exit 1; fi
82 if [[ -z ${ARCH+x} ]]; then echo "--arch is a required parameter"; usage; exit 1; fi
83 if [[ -z ${DEPLOYMENT_TARGET+x} ]]; then echo "--deployment-target is a required parameter"; usage;…
84 if [[ -z ${MACOS_SDK_VERSION+x} ]]; then echo "--sdk-version is a required parameter"; usage; exit …
85 if [[ -z ${ADDITIONAL_LIT_ARGS+x} ]]; then ADDITIONAL_LIT_ARGS=""; fi
88 TEMP_DIR="$(mktemp -d)"
91 if [[ -z ${NO_CLEANUP+x} ]]; then
93 rm -rf "${TEMP_DIR}"
102 LIBCXX_BUILD_DIR="${TEMP_DIR}/libcxx-build"
103 LIBCXX_INSTALL_DIR="${TEMP_DIR}/libcxx-install"
104 LIBCXXABI_BUILD_DIR="${TEMP_DIR}/libcxxabi-build"
105 LIBCXXABI_INSTALL_DIR="${TEMP_DIR}/libcxxabi-install"
107 PREVIOUS_DYLIBS_URL="http://lab.llvm.org:8080/roots/libcxx-roots.tar.gz"
108 LLVM_TARBALL_URL="https://github.com/llvm-mirror/llvm/archive/master.tar.gz"
109 export CC="$(xcrun --find clang)"
110 export CXX="$(xcrun --find clang++)"
115 curl -L "${LLVM_TARBALL_URL}" | tar -xz --strip-components=1 -C "${LLVM_ROOT}"
119 echo "@@@ Configuring architecture-related stuff @@@"
121 if [[ "${ARCH}" == "64" ]]; then LIT_ARCH_STRING=""; else LIT_ARCH_STRING="--param=enable_3…
126 mkdir -p "${LIBCXX_BUILD_DIR}"
128 xcrun cmake "${LIBCXX_ROOT}" -GNinja \
129 -DLLVM_PATH="${LLVM_ROOT}" \
130 -DCMAKE_INSTALL_PREFIX="${LIBCXX_INSTALL_DIR}" \
131 -DCMAKE_OSX_ARCHITECTURES="${CMAKE_ARCH_STRING}"
137 mkdir -p "${LIBCXXABI_BUILD_DIR}"
139 xcrun cmake "${LIBCXXABI_ROOT}" -GNinja \
140 -DLIBCXXABI_LIBCXX_PATH="${LIBCXX_ROOT}" \
141 -DLLVM_PATH="${LLVM_ROOT}" \
142 -DCMAKE_INSTALL_PREFIX="${LIBCXXABI_INSTALL_DIR}" \
143 -DCMAKE_OSX_ARCHITECTURES="${CMAKE_ARCH_STRING}"
149 ninja -C "${LIBCXX_BUILD_DIR}" install-cxx-headers
156 PREVIOUS_DYLIBS_DIR="${TEMP_DIR}/libcxx-dylibs"
158 curl "${PREVIOUS_DYLIBS_URL}" | tar -xz --strip-components=1 -C "${PREVIOUS_DYLIBS_DIR}"
168 "${LIBCXX_BUILD_DIR}/bin/llvm-lit" -sv "${LIBCXX_ROOT}/test" \
169 --param=enable_experimental=false \
170 --param=enable_filesystem=false \
172 --param=cxx_under_test="${CXX}" \
173 --param=cxx_headers="${LIBCXX_INSTALL_DIR}/include/c++/v1" \
174 --param=std="${STD}" \
175 --param=platform="macosx${DEPLOYMENT_TARGET}" \
176--param=cxx_runtime_root="$(dirname "${LIBCXX_ON_DEPLOYMENT_TARGET}")" \
177--param=abi_library_path="$(dirname "${LIBCXXABI_ON_DEPLOYMENT_TARGET}")" \
178 --param=use_system_cxx_lib="$(dirname "${LIBCXX_IN_SDK}")" \