Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ rustflags = ["-C", "target-feature=+crt-static"]
[target.aarch64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]

[target.'cfg(target_os = "linux")']
# Fix NAPI bindings on Linux: allow unresolved symbols (resolved at runtime by Node.js)
[target.'cfg(all(target_os = "linux", target_env = "gnu"))']
rustflags = ["-C", "link-args=-Wl,--warn-unresolved-symbols"]

# Additionally disable lld on x86_64 Linux (linker-features is stable only on x86_64)
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "linker-features=-lld", "-C", "link-args=-Wl,--warn-unresolved-symbols"]

# To be able to run unit tests on Windows, support compilation to 'x86_64-pc-windows-msvc'.
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- run: git diff --exit-code # Must commit everything

test-ubuntu-aarch64:
if: ${{ github.ref_name == 'main' }}
# if: ${{ github.ref_name == 'main' }}
name: Test Linux ARM64
runs-on: ubuntu-24.04-arm
steps:
Expand All @@ -47,7 +47,7 @@ jobs:
- run: git diff --exit-code # Must commit everything

test-mac: # Separate job to save a job on PRs
if: ${{ github.ref_name == 'main' }}
# if: ${{ github.ref_name == 'main' }}
name: Test Mac
runs-on: macos-latest
steps:
Expand All @@ -63,7 +63,7 @@ jobs:
- run: git diff --exit-code # Must commit everything

test-windows:
if: ${{ github.ref_name == 'main' }}
# if: ${{ github.ref_name == 'main' }}
name: Test Windows
runs-on: windows-latest
steps:
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
shell: bash

test-big-endian:
if: ${{ github.ref_name == 'main' }}
# if: ${{ github.ref_name == 'main' }}
name: Test big-endian # s390x-unknown-linux-gnu is a big-endian
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -214,7 +214,7 @@ jobs:
test-napi-windows:
name: Test NAPI (windows)
runs-on: windows-latest
if: ${{ github.ref_name == 'main' }}
# if: ${{ github.ref_name == 'main' }}
steps:
- name: Enable long paths on Windows
run: git config --system core.longpaths true
Expand Down
8 changes: 1 addition & 7 deletions apps/oxfmt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,10 @@ description.workspace = true
workspace = true

[lib]
crate-type = ["lib", "cdylib"]
crate-type = ["cdylib", "lib"]
path = "src/lib.rs"
doctest = false

[[bin]]
name = "oxfmt"
path = "src/main.rs"
test = false
doctest = false

[dependencies]
oxc_allocator = { workspace = true }
oxc_diagnostics = { workspace = true }
Expand Down
Loading