Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/cc-rs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cc-v1.2.15
Choose a base ref
...
head repository: rust-lang/cc-rs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cc-v1.2.16
Choose a head ref
  • 11 commits
  • 14 files changed
  • 7 contributors

Commits on Feb 24, 2025

  1. Fix archiver detection for musl cross compilation (#1404)

    NobodyXu authored Feb 24, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    e6ae39a View commit details
  2. Update windows-bindgen requirement from 0.59 to 0.60 (#1412)

    dependabot[bot] authored Feb 24, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    5fbe4d5 View commit details
  3. Change flag ordering (#1403)

    madsmtm authored Feb 24, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    181c03d View commit details

Commits on Feb 25, 2025

  1. fix: force windows compiler to run in out_dir to prevent artifacts …

    …in cwd (#1415)
    wmmc88 authored Feb 25, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    439b75f View commit details

Commits on Feb 26, 2025

  1. MSVC: Add LIB var when compiling flag_check (#1417)

    ChrisDenton authored Feb 26, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    8127db1 View commit details

Commits on Feb 27, 2025

  1. Regenerate target info (#1418)

    github-actions[bot] authored Feb 27, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    a6c36b5 View commit details
  2. Fix regenerate-windows-sys.yml (#1420)

    Should run whenever the code is updated
    NobodyXu authored Feb 27, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    dc3f4b0 View commit details
  3. Fix gen-windows-sys-binding (#1419)

    --no-core is renamed to --no-deps
    NobodyXu authored Feb 27, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    b8c8c3f View commit details
  4. Regenerate windows-sys binding (#1422)

    * Rename windows_targets.rs to windows_link.rs
    
    * Update windows/mod.rs
    
    * Fix windows-bindgen
    
    * update windows-sys binding
    NobodyXu authored Feb 27, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    8ea5e95 View commit details
  5. clang-cl: use /arch:SSE2 for x86 target arch (#1425)

    - Official Rust Windows targets require `SSE2` as part of baseline
      target features.
        - `i586` Windows target without SSE2 is in process of being removed,
          so wasn't changed in this commit.
    - STL is built with `/arch:SSE2` and no longer `/arch:IA32` since
      <microsoft/STL#4741>.
    
    This was noticed in rust-lang/rust CI for `i686-pc-windows-msvc`, where
    `rustc_llvm` builds failed because `__m128i` wasn't available, and we
    suspected it was due to `/arch:IA32`.
    jieyouxu authored Feb 27, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    9131f33 View commit details

Commits on Feb 28, 2025

  1. chore: release v1.2.16 (#1427)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored Feb 28, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    3c1325b View commit details
18 changes: 18 additions & 0 deletions .github/actions/check-clean-git-working-tree/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Check Clean Git Working Tree"
description: "Check that the git working tree is clean"

runs:
using: "composite"
steps:
- name: Check clean Git working tree
shell: bash
run: |
status_output=$(git status --porcelain=v1)
if [ -z "$status_output" ]; then
echo "Git working tree is clean."
exit 0
else
echo "dirty Git working tree detected!"
echo "$status_output"
exit 1
fi
24 changes: 23 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -169,12 +169,14 @@ jobs:
if: startsWith(matrix.build, 'cross-macos') || startsWith(matrix.build, 'cross-ios')
run: sudo apt-get install llvm
- name: Download macOS SDK
working-directory: ${{ runner.temp }}
if: startsWith(matrix.build, 'cross-macos')
run: |
wget https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX11.3.sdk.tar.xz
tar -xf MacOSX11.3.sdk.tar.xz
echo "SDKROOT=$(pwd)/MacOSX11.3.sdk" >> $GITHUB_ENV
- name: Download iOS SDK
working-directory: ${{ runner.temp }}
if: startsWith(matrix.build, 'cross-ios')
run: |
wget https://github.com/xybp888/iOS-SDKs/releases/download/iOS18.1-SDKs/iPhoneOS18.1.sdk.zip
@@ -196,6 +198,9 @@ jobs:
- run: cargo update
- uses: Swatinem/rust-cache@v2
- run: cargo test ${{ matrix.no_run }} --workspace --target ${{ matrix.target }} ${{ matrix.cargo_flags }}
# check that there are no uncommitted changes to prevent bugs like https://github.com/rust-lang/cc-rs/issues/1411
- name: check clean Git workting tree
uses: ./.github/actions/check-clean-git-working-tree

# This is separate from the matrix above because there is no prebuilt rust-std component for these targets.
check-build-std:
@@ -234,6 +239,9 @@ jobs:
- run: cargo test -Z build-std=std --no-run --workspace --target ${{ matrix.target }}
- run: cargo test -Z build-std=std --no-run --workspace --target ${{ matrix.target }} --release
- run: cargo test -Z build-std=std --no-run --workspace --target ${{ matrix.target }} --features parallel
# check that there are no uncommitted changes to prevent bugs like https://github.com/rust-lang/cc-rs/issues/1411
- name: check clean Git workting tree
uses: ./.github/actions/check-clean-git-working-tree

check-wasm:
name: Test wasm
@@ -252,6 +260,9 @@ jobs:
- run: cargo test --no-run --target ${{ matrix.target }}
- run: cargo test --no-run --target ${{ matrix.target }} --release
- run: cargo test --no-run --target ${{ matrix.target }} --features parallel
# check that there are no uncommitted changes to prevent bugs like https://github.com/rust-lang/cc-rs/issues/1411
- name: check clean Git workting tree
uses: ./.github/actions/check-clean-git-working-tree

test-wasm32-wasip1-thread:
name: Test wasm32-wasip1-thread
@@ -274,7 +285,7 @@ jobs:
echo "WASI_TOOLCHAIN_VERSION=$VERSION" >> "$GITHUB_ENV"
- name: Install wasi-sdk
working-directory: /tmp
working-directory: ${{ runner.temp }}
env:
REPO: WebAssembly/wasi-sdk
run: |
@@ -297,12 +308,17 @@ jobs:
- name: Run tests
run: cargo +nightly build -p $TARGET-test --target $TARGET

# check that there are no uncommitted changes to prevent bugs like https://github.com/rust-lang/cc-rs/issues/1411
- name: check clean Git workting tree
uses: ./.github/actions/check-clean-git-working-tree

cuda:
name: Test CUDA support
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install cuda-minimal-build-11-8
working-directory: ${{ runner.temp }}
shell: bash
run: |
# https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=20.04&target_type=deb_network
@@ -317,6 +333,9 @@ jobs:
run: |
PATH="/usr/local/cuda/bin:$PATH" cargo test --manifest-path dev-tools/cc-test/Cargo.toml --features test_cuda
PATH="/usr/local/cuda/bin:$PATH" CXX=clang++ cargo test --manifest-path dev-tools/cc-test/Cargo.toml --features test_cuda
# check that there are no uncommitted changes to prevent bugs like https://github.com/rust-lang/cc-rs/issues/1411
- name: check clean Git workting tree
uses: ./.github/actions/check-clean-git-working-tree

msrv:
name: MSRV
@@ -353,6 +372,9 @@ jobs:
shell: bash
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --no-deps
# check that there are no uncommitted changes to prevent bugs like https://github.com/rust-lang/cc-rs/issues/1411
- name: check clean Git workting tree
uses: ./.github/actions/check-clean-git-working-tree

rustfmt:
name: Rustfmt
2 changes: 1 addition & 1 deletion .github/workflows/regenerate-windows-sys.yml
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ on:
branches:
- 'main'
paths:
- 'dev-tools/gen-target-info/**'
- 'dev-tools/gen-windows-sys-binding/**'

jobs:
regenerate:
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -6,6 +6,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.2.16](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.15...cc-v1.2.16) - 2025-02-28

### Fixed

- force windows compiler to run in `out_dir` to prevent artifacts in cwd (#1415)

### Other

- use `/arch:SSE2` for `x86` target arch (#1425)
- Regenerate windows-sys binding ([#1422](https://github.com/rust-lang/cc-rs/pull/1422))
- Regenerate target info ([#1418](https://github.com/rust-lang/cc-rs/pull/1418))
- Add LIB var when compiling flag_check (#1417)
- Change flag ordering ([#1403](https://github.com/rust-lang/cc-rs/pull/1403))
- Fix archiver detection for musl cross compilation ([#1404](https://github.com/rust-lang/cc-rs/pull/1404))

## [1.2.15](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.14...cc-v1.2.15) - 2025-02-21

### Other
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cc"
version = "1.2.15"
version = "1.2.16"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/rust-lang/cc-rs"
2 changes: 1 addition & 1 deletion dev-tools/gen-windows-sys-binding/Cargo.toml
Original file line number Diff line number Diff line change
@@ -5,6 +5,6 @@ edition = "2018"
publish = false

[dependencies]
windows-bindgen = "0.59"
windows-bindgen = "0.60"
tempfile = "3"
regex = "1"
4 changes: 2 additions & 2 deletions dev-tools/gen-windows-sys-binding/src/main.rs
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ fn main() {
windows_bindgen::bindgen([
"--flat",
"--sys",
"--no-core",
"--no-deps",
"--out",
temp_file.path().to_str().unwrap(),
"--filter",
@@ -68,7 +68,7 @@ fn main() {
f.write_all("\n".as_bytes()).unwrap();
}

f.write_all(r#"use super::windows_targets;"#.as_bytes())
f.write_all(r#"use super::windows_link;"#.as_bytes())
.unwrap();
f.write_all("\n".as_bytes()).unwrap();

Loading