Skip to content

Commit af0dc20

Browse files
authored
chore: remove x86_64-unknown-linux-gnu-cc (#316)
1 parent 483e24e commit af0dc20

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.cargo/config.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
[build]
22
rustflags = ["--cfg", "tokio_unstable"] # also update .github/workflows/ci.yml
3+
# fix sqlite build error on linux
4+
[target.'cfg(target_os = "linux")']
5+
rustflags = [
6+
"--cfg",
7+
"tokio_unstable",
8+
"-C",
9+
"link-args=-Wl,--warn-unresolved-symbols",
10+
]
311

412
[unstable]
513
bindeps = true

.github/actions/build-upstream/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ runs:
2121
fi
2222
pnpm --filter rolldown build-node
2323
pnpm --filter rolldown-vite build-types
24-
CC="x86_64-unknown-linux-gnu-cc" pnpm --filter=@voidzero-dev/vite-plus build --target ${{ inputs.target }} --use-napi-cross
24+
CC=clang pnpm --filter=@voidzero-dev/vite-plus build --target ${{ inputs.target }} --use-napi-cross
2525
env:
2626
TARGET_CC: clang
2727

@@ -35,7 +35,7 @@ runs:
3535
fi
3636
pnpm --filter rolldown build-node
3737
pnpm --filter rolldown-vite build-types
38-
pnpm --filter=@voidzero-dev/vite-plus build --target ${{ inputs.target }} --use-napi-cross
38+
TARGET_CFLAGS="-D_BSD_SOURCE" pnpm --filter=@voidzero-dev/vite-plus build --target ${{ inputs.target }} --use-napi-cross
3939
env:
4040
TARGET_CC: clang
4141

0 commit comments

Comments
 (0)