Lines Matching +full:clang +full:- +full:tools
4 case $(uname -s) in
7 *) echo "Unsupported host platform: $(uname -s)"; exit 1 ;;
10 case $(uname -m) in
17 rm -rf ${rust_source_dir}/build/*
18 rm -rf ${root_build_dir}/output/*
25 cp ${shell_path}/tools/* ${rust_source_dir}/build/
26 chmod 750 ${rust_source_dir}/build/*clang*
34 echo "Unsupported platform: $(uname -s) $(uname -m)"
41 # $1:clang path, $2:clang name, $3:ar name
43 # add clang absolute path to shell tools
45 sed -i "s/exec ${2}/exec ${sys_clang_dir}\/${2}/g" ${rust_source_dir}/build/${2}
46 sed -i "s/exec ${2}++/exec ${sys_clang_dir}\/${2}++/g" ${rust_source_dir}/build/${2}++
47 # add clang absolute path to config.toml
49 sed -i "s/cc = \"${2}\"/cc = \"${rust_clang_dir}\/${2}\"/g" ${rust_source_dir}/config.toml
50 sed -i "s/cxx = \"${2}++\"/cxx = \"${rust_clang_dir}\/${2}++\"/g" ${rust_source_dir}/config.toml
51 … sed -i "s/linker = \"${2}\"/linker = \"${sys_clang_dir}\/${2}\"/g" ${rust_source_dir}/config.toml
52 sed -i "s/ar = \"${3}\"/ar = \"${sys_clang_dir}\/${3}\"/g" ${rust_source_dir}/config.toml
56 # $1:musl head file path, $2 clang name
57 # add musl head file path to shell tools
59 sed -i "s/-Imusl/-I${musl_head_file_dir}/g" ${rust_source_dir}/build/${2}
60 sed -i "s/-Imusl/-I${musl_head_file_dir}/g" ${rust_source_dir}/build/${2}++
64 # $1:OH clang path $2:mingw clang path $3:musl head file path
66 update_config_clang_path ${1} clang llvm-ar
67 update_config_clang_path ${1} aarch64-unknown-linux-ohos-clang llvm-ar
68 update_config_clang_path ${1} armv7-unknown-linux-ohos-clang llvm-ar
69 update_config_clang_path ${1} x86_64-unknown-linux-ohos-clang llvm-ar
70 update_config_clang_path ${2} x86_64-w64-mingw32-clang x86_64-w64-mingw32-ar
71 update_musl_head_file_path ${3} aarch64-unknown-linux-ohos-clang
72 update_musl_head_file_path ${3} armv7-unknown-linux-ohos-clang
73 update_musl_head_file_path ${3} x86_64-unknown-linux-ohos-clang
79 sed -i "s/$old_version/$new_version/g" ${rust_source_dir}/config.toml
81 sed -i "" "s/$old_version/$new_version/g" ${rust_source_dir}/config.toml
83 sed -i "" "s/$old_version/$new_version/g" ${rust_source_dir}/config.toml
85 echo "Unsupported platform: $(uname -s) $(uname -m)"
92 tar xf rustc-1.72.0-src.tar.gz
93 pushd ${1}/rustc-1.72.0-src
94 cp -r {.cargo,vendor} ${2}
95 cp -r library/{backtrace,stdarch} ${2}/library/
96 cp -r src/doc/{book,edition-guide,embedded-book,nomicon} ${2}/src/doc/
97 cp -r src/doc/{reference,rust-by-example,rustc-dev-guide} ${2}/src/doc/
98 cp -r src/tools/cargo/* ${2}/src/tools/cargo/
105 local pre_rust_date="2023-07-13"
106 mkdir -p ${rust_static_dir} ${rust_source_dir}/build/cache/${pre_rust_date}
111 …local files=("rust-std-1.71.0-${cpu}-${platform}.tar.xz" "rustc-1.71.0-${cpu}-${platform}.tar.xz" \
112 "cargo-1.71.0-${cpu}-${platform}.tar.xz")
115 if [ ! -e "${file}" ]; then
116 curl -O -k -m 300 ${rust_down_net}/1.71.0/${file} &
121 if [ ! -e "rustc-1.72.0-src.tar.gz" ]; then
122 curl -O -k -m 600 ${rust_down_net}/1.72.0/rustc-1.72.0-src.tar.gz
126 cp ${rust_static_dir}/rustc-1.72.0-src.tar.gz ${root_build_dir}
131 download_rust_static_source "unknown-linux-gnu" "x86_64"
134 download_rust_static_source "apple-darwin" "x86_64"
136 download_rust_static_source "apple-darwin" "aarch64"
139 echo "Unsupported platform: $(uname -s) $(uname -m)"
148 tar -xf rust-std-nightly-${1}.tar.gz
149 local file_name="./rust-std-nightly-${1}/rust-std-${1}/lib/rustlib/${1}/lib/libstd.dylib.so"
150 llvm-strip ${file_name}
151 local file_size=$(stat -c%s ${file_name})
153 rm -rf rust-std-nightly-${1}
154 if [ $file_size -ge 1228000 ]; then
164 export PATH=${rust_tools}/clang/ohos/linux-x86_64/llvm/bin:$PATH
165 export PATH=${rust_tools}/cmake/linux-x86/bin:$PATH
171 if [ -z "$line" ]; then
175 tag=$(echo $line | cut -d ']' -f 1 | tr -d '[')
177 content=$(echo $line | cut -d ']' -f 2-)
180 exclude_file="$exclude_file --exclude $content"
184 exclude_file="$exclude_file --exclude $content"
189 exclude_file="$exclude_file --exclude $content"
200 test_suite_dir=("assembly" "codegen" "codegen-units" "incremental" "mir-opt"
201 "pretty" "run-coverage" "run-coverage-rustdoc" "run-make" "run-make-fulldeps"
202 "run-pass-valgrind" "rustdoc" "rustdoc-js" "rustdoc-js-std"
203 "rustdoc-json" "rustdoc-ui" "ui" "ui-fulldeps")