diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e131fbd..ebbcfa7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - target: [x86_64-unknown-linux-gnu] + target: [x86_64-unknown-linux-musl] steps: - uses: actions/checkout@master - name: Compile and release diff --git a/src/lib/lib.rs b/src/lib/lib.rs index 1a481db..58514b8 100644 --- a/src/lib/lib.rs +++ b/src/lib/lib.rs @@ -76,6 +76,8 @@ fn run_inner(mut judger: impl Judger, mut env: Env) { ru_nsignals: 0, ru_nvcsw: 0, ru_nivcsw: 0, + #[cfg(any(target_env = "musl", target_env = "ohos", target_os = "emscripten"))] + __reserved: [c_long; 16], }; let mut stat = 0;