├── .github ├── actions │ └── check-clean-git-working-tree │ │ └── action.yaml ├── dependabot.yml └── workflows │ ├── main.yml │ ├── publish.yml │ ├── regenerate-target-info.yml │ ├── regenerate-windows-sys.yml │ ├── release-pr.yml │ └── test-rustc-targets.yml ├── .gitignore ├── CHANGELOG.md ├── Cargo.toml ├── LICENSE-APACHE ├── LICENSE-MIT ├── README.md ├── clippy.toml ├── dev-tools ├── cc-test │ ├── Cargo.toml │ ├── build.rs │ ├── src │ │ ├── NMakefile │ │ ├── aarch64.S │ │ ├── aarch64.asm │ │ ├── arm64ec.asm │ │ ├── armv7.S │ │ ├── bar1.c │ │ ├── bar2.c │ │ ├── baz.cpp │ │ ├── compile_error.c │ │ ├── cuda.cu │ │ ├── dummy.c │ │ ├── expand.c │ │ ├── foo.c │ │ ├── i686.S │ │ ├── i686.asm │ │ ├── include │ │ │ └── foo.h │ │ ├── lib.rs │ │ ├── msvc.c │ │ ├── opt_linkage.c │ │ ├── riscv64gc.S │ │ ├── windows.c │ │ ├── x86_64.S │ │ └── x86_64.asm │ └── tests │ │ ├── all.rs │ │ └── output.rs ├── gen-target-info │ ├── Cargo.toml │ └── src │ │ ├── lib.rs │ │ ├── main.rs │ │ ├── read.rs │ │ └── target_specs.rs ├── gen-windows-sys-binding │ ├── Cargo.toml │ ├── src │ │ ├── lib.rs │ │ └── main.rs │ └── windows_sys.list └── wasi-test │ ├── Cargo.toml │ └── src │ └── main.rs ├── find-msvc-tools ├── CHANGELOG.md ├── Cargo.toml ├── LICENSE-APACHE ├── LICENSE-MIT ├── README.md └── src │ ├── com.rs │ ├── find_tools.rs │ ├── lib.rs │ ├── registry.rs │ ├── setup_config.rs │ ├── tool.rs │ ├── vs_instances.rs │ ├── winapi.rs │ ├── windows_link.rs │ └── windows_sys.rs ├── src ├── bin │ └── cc-shim.rs ├── command_helpers.rs ├── detect_compiler_family.c ├── flags.rs ├── lib.rs ├── parallel │ ├── async_executor.rs │ ├── command_runner.rs │ ├── job_token.rs │ ├── mod.rs │ └── stderr.rs ├── target.rs ├── target │ ├── apple.rs │ ├── generated.rs │ ├── llvm.rs │ └── parser.rs ├── tempfile.rs ├── tool.rs └── utilities.rs └── tests ├── archiver.rs ├── cc_env.rs ├── cflags.rs ├── cflags_shell_escaped.rs ├── cxxflags.rs ├── rustflags.rs ├── support └── mod.rs └── test.rs /.github/actions/check-clean-git-working-tree/action.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/.github/actions/check-clean-git-working-tree/action.yaml -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.github/workflows/regenerate-target-info.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/.github/workflows/regenerate-target-info.yml -------------------------------------------------------------------------------- /.github/workflows/regenerate-windows-sys.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/.github/workflows/regenerate-windows-sys.yml -------------------------------------------------------------------------------- /.github/workflows/release-pr.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/.github/workflows/release-pr.yml -------------------------------------------------------------------------------- /.github/workflows/test-rustc-targets.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/.github/workflows/test-rustc-targets.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | Cargo.lock 3 | .idea 4 | *.iml 5 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/LICENSE-APACHE -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/LICENSE-MIT -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/README.md -------------------------------------------------------------------------------- /clippy.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/clippy.toml -------------------------------------------------------------------------------- /dev-tools/cc-test/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/cc-test/Cargo.toml -------------------------------------------------------------------------------- /dev-tools/cc-test/build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/cc-test/build.rs -------------------------------------------------------------------------------- /dev-tools/cc-test/src/NMakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/cc-test/src/NMakefile -------------------------------------------------------------------------------- /dev-tools/cc-test/src/aarch64.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/cc-test/src/aarch64.S -------------------------------------------------------------------------------- /dev-tools/cc-test/src/aarch64.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/cc-test/src/aarch64.asm -------------------------------------------------------------------------------- /dev-tools/cc-test/src/arm64ec.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/cc-test/src/arm64ec.asm -------------------------------------------------------------------------------- /dev-tools/cc-test/src/armv7.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/cc-test/src/armv7.S -------------------------------------------------------------------------------- /dev-tools/cc-test/src/bar1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/cc-test/src/bar1.c -------------------------------------------------------------------------------- /dev-tools/cc-test/src/bar2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int32_t bar2() { 4 | return 6; 5 | } 6 | 7 | -------------------------------------------------------------------------------- /dev-tools/cc-test/src/baz.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/cc-test/src/baz.cpp -------------------------------------------------------------------------------- /dev-tools/cc-test/src/compile_error.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/cc-test/src/compile_error.c -------------------------------------------------------------------------------- /dev-tools/cc-test/src/cuda.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/cc-test/src/cuda.cu -------------------------------------------------------------------------------- /dev-tools/cc-test/src/dummy.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/cc-test/src/dummy.c -------------------------------------------------------------------------------- /dev-tools/cc-test/src/expand.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/cc-test/src/expand.c -------------------------------------------------------------------------------- /dev-tools/cc-test/src/foo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/cc-test/src/foo.c -------------------------------------------------------------------------------- /dev-tools/cc-test/src/i686.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/cc-test/src/i686.S -------------------------------------------------------------------------------- /dev-tools/cc-test/src/i686.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/cc-test/src/i686.asm -------------------------------------------------------------------------------- /dev-tools/cc-test/src/include/foo.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dev-tools/cc-test/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/cc-test/src/lib.rs -------------------------------------------------------------------------------- /dev-tools/cc-test/src/msvc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/cc-test/src/msvc.c -------------------------------------------------------------------------------- /dev-tools/cc-test/src/opt_linkage.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int32_t answer() { 4 | return 42; 5 | } 6 | -------------------------------------------------------------------------------- /dev-tools/cc-test/src/riscv64gc.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/cc-test/src/riscv64gc.S -------------------------------------------------------------------------------- /dev-tools/cc-test/src/windows.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/cc-test/src/windows.c -------------------------------------------------------------------------------- /dev-tools/cc-test/src/x86_64.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/cc-test/src/x86_64.S -------------------------------------------------------------------------------- /dev-tools/cc-test/src/x86_64.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/cc-test/src/x86_64.asm -------------------------------------------------------------------------------- /dev-tools/cc-test/tests/all.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/cc-test/tests/all.rs -------------------------------------------------------------------------------- /dev-tools/cc-test/tests/output.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/cc-test/tests/output.rs -------------------------------------------------------------------------------- /dev-tools/gen-target-info/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/gen-target-info/Cargo.toml -------------------------------------------------------------------------------- /dev-tools/gen-target-info/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/gen-target-info/src/lib.rs -------------------------------------------------------------------------------- /dev-tools/gen-target-info/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/gen-target-info/src/main.rs -------------------------------------------------------------------------------- /dev-tools/gen-target-info/src/read.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/gen-target-info/src/read.rs -------------------------------------------------------------------------------- /dev-tools/gen-target-info/src/target_specs.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/gen-target-info/src/target_specs.rs -------------------------------------------------------------------------------- /dev-tools/gen-windows-sys-binding/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/gen-windows-sys-binding/Cargo.toml -------------------------------------------------------------------------------- /dev-tools/gen-windows-sys-binding/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/gen-windows-sys-binding/src/lib.rs -------------------------------------------------------------------------------- /dev-tools/gen-windows-sys-binding/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/gen-windows-sys-binding/src/main.rs -------------------------------------------------------------------------------- /dev-tools/gen-windows-sys-binding/windows_sys.list: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/gen-windows-sys-binding/windows_sys.list -------------------------------------------------------------------------------- /dev-tools/wasi-test/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/wasi-test/Cargo.toml -------------------------------------------------------------------------------- /dev-tools/wasi-test/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/dev-tools/wasi-test/src/main.rs -------------------------------------------------------------------------------- /find-msvc-tools/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/find-msvc-tools/CHANGELOG.md -------------------------------------------------------------------------------- /find-msvc-tools/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/find-msvc-tools/Cargo.toml -------------------------------------------------------------------------------- /find-msvc-tools/LICENSE-APACHE: -------------------------------------------------------------------------------- 1 | ../LICENSE-APACHE -------------------------------------------------------------------------------- /find-msvc-tools/LICENSE-MIT: -------------------------------------------------------------------------------- 1 | ../LICENSE-MIT -------------------------------------------------------------------------------- /find-msvc-tools/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/find-msvc-tools/README.md -------------------------------------------------------------------------------- /find-msvc-tools/src/com.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/find-msvc-tools/src/com.rs -------------------------------------------------------------------------------- /find-msvc-tools/src/find_tools.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/find-msvc-tools/src/find_tools.rs -------------------------------------------------------------------------------- /find-msvc-tools/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/find-msvc-tools/src/lib.rs -------------------------------------------------------------------------------- /find-msvc-tools/src/registry.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/find-msvc-tools/src/registry.rs -------------------------------------------------------------------------------- /find-msvc-tools/src/setup_config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/find-msvc-tools/src/setup_config.rs -------------------------------------------------------------------------------- /find-msvc-tools/src/tool.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/find-msvc-tools/src/tool.rs -------------------------------------------------------------------------------- /find-msvc-tools/src/vs_instances.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/find-msvc-tools/src/vs_instances.rs -------------------------------------------------------------------------------- /find-msvc-tools/src/winapi.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/find-msvc-tools/src/winapi.rs -------------------------------------------------------------------------------- /find-msvc-tools/src/windows_link.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/find-msvc-tools/src/windows_link.rs -------------------------------------------------------------------------------- /find-msvc-tools/src/windows_sys.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/find-msvc-tools/src/windows_sys.rs -------------------------------------------------------------------------------- /src/bin/cc-shim.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/src/bin/cc-shim.rs -------------------------------------------------------------------------------- /src/command_helpers.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/src/command_helpers.rs -------------------------------------------------------------------------------- /src/detect_compiler_family.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/src/detect_compiler_family.c -------------------------------------------------------------------------------- /src/flags.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/src/flags.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/parallel/async_executor.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/src/parallel/async_executor.rs -------------------------------------------------------------------------------- /src/parallel/command_runner.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/src/parallel/command_runner.rs -------------------------------------------------------------------------------- /src/parallel/job_token.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/src/parallel/job_token.rs -------------------------------------------------------------------------------- /src/parallel/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/src/parallel/mod.rs -------------------------------------------------------------------------------- /src/parallel/stderr.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/src/parallel/stderr.rs -------------------------------------------------------------------------------- /src/target.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/src/target.rs -------------------------------------------------------------------------------- /src/target/apple.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/src/target/apple.rs -------------------------------------------------------------------------------- /src/target/generated.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/src/target/generated.rs -------------------------------------------------------------------------------- /src/target/llvm.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/src/target/llvm.rs -------------------------------------------------------------------------------- /src/target/parser.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/src/target/parser.rs -------------------------------------------------------------------------------- /src/tempfile.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/src/tempfile.rs -------------------------------------------------------------------------------- /src/tool.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/src/tool.rs -------------------------------------------------------------------------------- /src/utilities.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/src/utilities.rs -------------------------------------------------------------------------------- /tests/archiver.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/tests/archiver.rs -------------------------------------------------------------------------------- /tests/cc_env.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/tests/cc_env.rs -------------------------------------------------------------------------------- /tests/cflags.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/tests/cflags.rs -------------------------------------------------------------------------------- /tests/cflags_shell_escaped.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/tests/cflags_shell_escaped.rs -------------------------------------------------------------------------------- /tests/cxxflags.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/tests/cxxflags.rs -------------------------------------------------------------------------------- /tests/rustflags.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/tests/rustflags.rs -------------------------------------------------------------------------------- /tests/support/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/tests/support/mod.rs -------------------------------------------------------------------------------- /tests/test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/cc-rs/HEAD/tests/test.rs --------------------------------------------------------------------------------