Skip to content

Commit

Permalink
Merge pull request #3 from vanJker/von
Browse files Browse the repository at this point in the history
Transfer HPC/C++ to Joker Von
  • Loading branch information
ccrysisa authored Dec 20, 2024
2 parents ff67600 + 0449dbf commit 1f93893
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 63 deletions.
62 changes: 0 additions & 62 deletions content/posts/cpp/hpcxxpo.md

This file was deleted.

21 changes: 20 additions & 1 deletion content/posts/toolkit/wsl2.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,26 @@ Windows 11 的 WSL 则默认支持 WSLg 图形化。
$ sudo pacman -S coreutils binutils man-db man-pages gcc git
```

> clang 太大了个人不推荐在 WSL 上使用
clang 太大了个人不推荐在 WSL 上使用,如果要使用 clang-format 推荐下载单独的 [AUR 包](https://aur.archlinux.org/packages/clang-format-static-bin) (pacman 源中没有单独的 clamg-format 包,而是被包含在 clang 这个超打包里面)。

Install:

```sh
$ git clone https://aur.archlinux.org/clang-format-static-bin.git
$ cd clang-format-static-bin/
$ makepkg -si
...
# install path is /opt/archlinux-clang-format/, you can get more infomation
# by type `archlinux-clang-format --help`
$ sudo ln -s /opt/archlinux-clang-format/clang-format /usr/sbin/
```

Remove:

```sh
$ sudo rm -rf /usr/sbin/clang-format
$ sudo rm -rf /opt/
```

关于 pacman 的用法可以参考 B 站 TheCW 的讲解视频:

Expand Down

0 comments on commit 1f93893

Please sign in to comment.