cc-rs icon indicating copy to clipboard operation
cc-rs copied to clipboard

Rust library for build scripts to compile C/C++ code into a Rust library

Results 182 cc-rs issues
Sort by recently updated
recently updated
newest added

The first commit is #708 but unseparatable. Fix AppleClang build for -apple-darwin to add -isysroot for MacOSX.sdk correctly when cc is under xctoolchain. Becasue `-isysroot` priors to `$SDKROOT` env variable,...

It is not practical to go through every single dependency and enable the parallel feature for them. This should be a default feature.

Issue #230 is the issue for this, this patch just documents the current behaviour.

When using the Android NDK toolchain on Windows, `cc-rs` currently attempts to pass `--target` twice: ``` running: "C:\\Users\\arcdev\\AppData\\Local\\Android\\Sdk\\ndk\\25.0.8775105\\toolchains\\llvm\\prebuilt\\windows-x86_64\\bin\\clang.exe" "--target=armv7a-linux-androideabi21" "-O0" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "--target=armv7-linux-androideabi" "-Wall" "-Wextra" "-E"...

cc-rs [hardcodes](https://github.com/rust-lang/cc-rs/blob/53fb72c87e5769a299f1886ead831901b9c775d6/src/windows_registry.rs#L477) "VC\Tools\MSVC" when searching for tools, but LLVM tools are in "VC\Tools\Llvm", which prevents finding things like clang-cl if it not actively being used by any `Build`s.

O-windows

If a source file was specified by absolute path, then the corresponding object file was placed into OUT_DIR. This posed a problem if multiple files with the same base name...

This is a kind of alternative to #673. I write "kind of" because it's not in direct opposition, but rather just a more sensible and robust approach. I mark it...

This commit adds API to record the compilation invocations in order to emit compile_commands.json a.k.a. JSON compilation database. Fixes #497 See following screencast that uses Neovim with rust-analyzer and clangd...