From 9758402dd29cb87e14f47612207eee7500b1ab2f Mon Sep 17 00:00:00 2001 From: overweight Date: Mon, 30 Oct 2023 16:31:27 +0800 Subject: [PATCH] ci: minor optimization --- .cargo/config | 8 +------- .pre-commit-config.yaml | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.cargo/config b/.cargo/config index 90cff1a7..581ef8e0 100644 --- a/.cargo/config +++ b/.cargo/config @@ -1,8 +1,2 @@ -[target.x86_64-unknown-linux-musl] -rustflags = ["-C", "target-feature=-crt-static", "-C", "link-arg=-fstack-protector-all", "-C", "link-arg=-fpie", "-C", "link-arg=-DFORTIFY=2 -O2", "-C", "link-arg=-lm"] - -[target.aarch64-unknown-linux-musl] -rustflags = ["-C", "target-feature=-crt-static", "-C", "link-arg=-fstack-protector-all", "-C", "link-arg=-fpie", "-C", "link-arg=-DFORTIFY=2 -O2", "-C", "link-arg=-lm"] - [target.'cfg(unix)'] -rustflags = ["-C", "link-arg=-fstack-protector-all", "-C", "link-arg=-fpie", "-C", "link-arg=-DFORTIFY=2 -O2"] +rustflags = ["-C", "target-feature=-crt-static", "-C", "link-arg=-fstack-protector-all", "-C", "link-arg=-fpie", "-C", "link-arg=-DFORTIFY=2 -O2", "-C", "link-arg=-lm", "-C", "link-arg=-fstack-protector-all", "-C", "link-arg=-fpie", "-C", "link-arg=-DFORTIFY=2 -O2"] diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 280c98df..32a7eb36 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: codespell name: codespell description: Checks for common misspellings in text files. - entry: bash -c 'cargo clean;codespell -I ci/codespell_ignore_words -x ci/codespell_ignore_words -S *.rules' + entry: bash -c 'cargo clean;codespell -I ci/codespell_ignore_words -x ci/codespell_ignore_words -S *.rules -S ./vendor*' language: system pass_filenames: false verbose: true -- Gitee