Skip to content

Commit

Permalink
Merge pull request #537 from Brooooooklyn/add-glibc-doc
Browse files Browse the repository at this point in the history
docs: add glibc version not less than 2.18
  • Loading branch information
Brooooooklyn authored Aug 17, 2022
2 parents 4e48571 + 6b7d0ab commit 5f9c8f9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
12 changes: 8 additions & 4 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,17 @@ npm install @napi-rs/canvas

### `arm64`

**Linux** 需要 [**_cortex-a57_**](https://en.wikipedia.org/wiki/ARM_Cortex-A57) 或更新的 CPU 架构.
**Linux** 需要 [**_cortex-a57_**](https://en.wikipedia.org/wiki/ARM_Cortex-A57) 或更新的 CPU 架构

**macOS** 上支持所有 `m` 系列芯片.
**macOS** 上支持所有 Apple M 系列芯片

### `armv7`

[**_cortex-a7_**](https://en.wikipedia.org/wiki/ARM_Cortex-A7) 或更新的 CPU 架构.
[**_cortex-a7_**](https://en.wikipedia.org/wiki/ARM_Cortex-A7) 或更新的 CPU 架构。

### glibc

由于 Skia 依赖 [glibc](https://www.gnu.org/software/libc/) 2.18 的 API,所以最少需要您的系统中 glibc 版本 >= 2.18。

# 用法

Expand Down Expand Up @@ -117,7 +121,7 @@ writeFileSync(join(__dirname, 'draw-emoji.png'), b)

# 性能

[benchmark](./benchmark) 代码.
[benchmark](./benchmark) 代码

硬件信息:

Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,16 @@ npm install @napi-rs/canvas

[**_cortex-a57_**](https://en.wikipedia.org/wiki/ARM_Cortex-A57) or newer CPU architecture on **Linux**.

All `m` chips on **macOS**.
All Apple M chips on **macOS**.

### `armv7`

[**_cortex-a7_**](https://en.wikipedia.org/wiki/ARM_Cortex-A7) or newer CPU architecture.

### glibc

Since Skia relies on the [glibc](https://www.gnu.org/software/libc/) 2.18 API, you need to have at least glibc version >= 2.18 on your system.

# Usage

```js
Expand Down

0 comments on commit 5f9c8f9

Please sign in to comment.