Skip to content

Commit a1e291a

Browse files
authored
Accpet OsStr instead of str for flags (#1100)
* Update `getenv` to return `Arc<Ostr>` instead of `Arc<str>` It is possible that the environment variable contains non-utf8 charactes Signed-off-by: Jiahao XU <[email protected]> * Update `get_cpp_link_stdlib` to return `Result<Option<Cow<'_, Path>>, Error>` Signed-off-by: Jiahao XU <[email protected]> * Update `cpp_{set, link}_stdlib` to accept `Path` instead of `str` Signed-off-by: Jiahao XU <[email protected]> * Optimize `prefix_for_target` to ret `Cow<'static, str>` Signed-off-by: Jiahao XU <[email protected]> * Accept `impl AsRef<OsStr>` for asm, ar and cc/cxx flags and `link_lib_modifiers` Signed-off-by: Jiahao XU <[email protected]> * Improve debug logging in `getenv` Signed-off-by: Jiahao XU <[email protected]> * Revert deprecation * Revert `cpp_{set, link}_stdlib` changes Signed-off-by: Jiahao XU <[email protected]> * Fix doc Signed-off-by: Jiahao XU <[email protected]> --------- Signed-off-by: Jiahao XU <[email protected]>
1 parent 7ff340c commit a1e291a

File tree

2 files changed

+153
-70
lines changed

2 files changed

+153
-70
lines changed

0 commit comments

Comments
 (0)