Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 42
Build/improve llvm development#51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| #compdef build-rmcs | ||
| local _comp_func="${_comps[colcon]}" | ||
| if [[ -z "${_comp_func}" ]]; then | ||
| if (( $+functions[_python_argcomplete] )); then | ||
| _comp_func="_python_argcomplete" | ||
| elif (( $+functions[_colcon] )); then | ||
| _comp_func="_colcon" | ||
| else | ||
| _message "colcon completion not found. Please source colcon completion setup." | ||
| return 1 | ||
| fi | ||
| fi | ||
| if [[ "${_comp_func}" == "_python_argcomplete" ]]; then | ||
| local IFS=$'\013' | ||
| local -a completions | ||
| local _comp_line _comp_point | ||
| _comp_line="colcon build${BUFFER#build-rmcs}" | ||
| _comp_point=$((CURSOR + 2)) | ||
| completions=($(IFS="$IFS" \ | ||
| COMP_LINE="${_comp_line}" \ | ||
| COMP_POINT="${_comp_point}" \ | ||
| _ARGCOMPLETE=1 \ | ||
| _ARGCOMPLETE_SHELL="zsh" \ | ||
| _ARGCOMPLETE_SUPPRESS_SPACE=1 \ | ||
| __python_argcomplete_run colcon)) | ||
| _describe colcon completions -o nosort | ||
| return 0 | ||
| fi | ||
| local -a _orig_words | ||
| local _orig_current | ||
| _orig_words=("${words[@]}") | ||
| _orig_current=${CURRENT} | ||
| words=(colcon build "${_orig_words[@]:1}") | ||
| CURRENT=$((_orig_current + 1)) | ||
| "${_comp_func}" "$@" | ||
| local status=$? | ||
| words=("${_orig_words[@]}") | ||
| CURRENT=${_orig_current} | ||
| return $status | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -88,17 +88,24 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| rm -rf /var/lib/apt/lists/* /tmp/* | ||
| # Install latest stable llvm-toolchain | ||
| ARG LLVM_VERSION=22 | ||
| RUN mkdir -p /etc/apt/keyrings && \ | ||
| wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | gpg -o /etc/apt/keyrings/llvm-snapshot.gpg --dearmor && \ | ||
| echo "deb [signed-by=/etc/apt/keyrings/llvm-snapshot.gpg] https://mirrors.tuna.tsinghua.edu.cn/llvm-apt/noble/ llvm-toolchain-noble-22 main" \ | ||
| echo "deb [signed-by=/etc/apt/keyrings/llvm-snapshot.gpg] https://mirrors.tuna.tsinghua.edu.cn/llvm-apt/noble/ llvm-toolchain-noble-${LLVM_VERSION} main" \ | ||
| | tee /etc/apt/sources.list.d/llvm.list && \ | ||
| apt-get update && \ | ||
| apt-get install -y --no-install-recommends clang-22 clangd-22 clang-format-22 lldb-22 && \ | ||
| update-alternatives --install /usr/bin/clang clang /usr/bin/clang-22 100 && \ | ||
| update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-22 100 && \ | ||
| update-alternatives --install /usr/bin/clangd clangd /usr/bin/clangd-22 100 && \ | ||
| update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-22 100 && \ | ||
| update-alternatives --install /usr/bin/lldb lldb /usr/bin/lldb-22 100 && \ | ||
| apt-get install -y --no-install-recommends \ | ||
| clang-${LLVM_VERSION} clangd-${LLVM_VERSION} clang-format-${LLVM_VERSION} clang-tidy-${LLVM_VERSION} \ | ||
| lldb-${LLVM_VERSION} lld-${LLVM_VERSION} llvm-${LLVM_VERSION} && \ | ||
| update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${LLVM_VERSION} 100 && \ | ||
| update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-${LLVM_VERSION} 100 && \ | ||
| update-alternatives --install /usr/bin/clangd clangd /usr/bin/clangd-${LLVM_VERSION} 100 && \ | ||
| update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-${LLVM_VERSION} 100 && \ | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 漏了 clang-tidy ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 下载的包还是显式写出来吧,这样可以看出我们用到了什么 | ||
| update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-${LLVM_VERSION} 100 && \ | ||
| update-alternatives --install /usr/bin/lldb lldb /usr/bin/lldb-${LLVM_VERSION} 100 && \ | ||
| update-alternatives --install /usr/bin/llvm-ar llvm-ar /usr/bin/llvm-ar-${LLVM_VERSION} 100 && \ | ||
| update-alternatives --install /usr/bin/llvm-ranlib llvm-ranlib /usr/bin/llvm-ranlib-${LLVM_VERSION} 100 && \ | ||
| update-alternatives --install /usr/bin/ld.lld ld.lld /usr/bin/ld.lld-${LLVM_VERSION} 100 && \ | ||
| apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* | ||
| # Generate/load ssh key and setup unison | ||
Uh oh!
There was an error while loading. Please reload this page.