Closed
Description
I can create a pull request for this, but I wanted to discuss it first.
In some situations I find myself writing small C programs to generate Rust files with const's taken from header defines. For such it would practical to reuse gcc-rs abstractions over a C compiler.
Therefore, I propose a compile_exectuable
function and to change Config::compile
behavior to detect whether to build an executable or a lib based on the simple pattern, lib.so* for a library, and "not . and not lib*" for executable.
Metadata
Metadata
Assignees
Labels
No labels